freetype/src
suzuki toshiya 3512a71269 [cache] Change the hash types to FT_PtrDist.
On LLP64 platforms (e.g. Win64), FT_ULong (32-bit)
variables are inappropriate to calculate hash values
from the memory address (64-bit).  The hash variables
are extended from FT_ULong to FT_PtrDist and new
hashing macro functions are introduced.  The hash
values on 16-bit memory platforms are changed, but
ILP32 and LP64 are not changed.  The hash value in
the cache subsystem is not reverted to the memory
address, so using signed type FT_PtrDist is safe.

* src/cache/ftccache.h (_FTC_FACE_ID_HASH): New hash
function to replace FTC_FACE_ID_HASH() for portability.
* src/cache/ftcmanag.h (FTC_SCALER_HASH): Replace
FTC_FACE_ID_HASH() by _FTC_FACE_ID_HASH().
* src/cache/ftccmap.c (FTC_CMAP_HASH): Ditto.

* src/cache/ftccache.h (FTC_NodeRec): The type of the
member `hash' is changed from FT_UInt32 to FT_PtrDist.

* src/cache/ftccache.h (FTC_Cache_Lookup): The type of the
argument `hash' is changed from FT_UInt32 to FT_PtrDist.
(FTC_Cache_NewNode): Ditto.
* src/cache/ftccache.c (ftc_cache_add): Ditto.
(FTC_Cache_Lookup): Ditto.  (FTC_Cache_NewNode): Ditto.
* src/cache/ftcglyph.h (FTC_GCache_Lookup): Ditto.
* src/cache/ftcglyph.c (FTC_GCache_Lookup): Ditto.

* src/cache/ftcbasic.c (FTC_ImageCache_Lookup): The type
of the internal variable `hash' is changed to FT_PtrDist
from FT_UInt32.  (FTC_ImageCache_LookupScaler): Ditto.
(FTC_SBitCache_Lookup): Ditto.
(FTC_SBitCache_LookupScaler): Ditto.
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto.
* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Ditto.
Also the type of the internal variable `_idx' is changed to
FT_PtrDist from FT_UInt32 for better pointer calculation.
2010-10-25 02:08:56 +09:00
..
autofit Fix minor issues reported by <muktha.narayan@wipro.com>. 2010-09-13 07:32:22 +02:00
base Change the type of FT_MEM_VAL() from FT_ULong to FT_PtrDist. 2010-10-25 00:35:59 +09:00
bdf Remove C++ warnings. 2010-07-12 21:13:22 +02:00
cache [cache] Change the hash types to FT_PtrDist. 2010-10-25 02:08:56 +09:00
cff Minor fixes. 2010-09-19 20:51:19 +02:00
cid Fix minor issues reported by <muktha.narayan@wipro.com>. 2010-09-13 07:32:22 +02:00
gxvalid */*: Use module specific error names where appropriate. 2010-06-24 10:34:29 +02:00
gzip Remove C++ warnings. 2010-07-12 21:13:22 +02:00
lzw */*: Use module specific error names where appropriate. 2010-06-24 10:34:29 +02:00
otvalid Formatting. 2010-06-08 08:37:11 +02:00
pcf Use defined macros to set {platform,encoding}_id. 2010-07-09 22:51:49 +09:00
pfr Remove C++ warnings. 2010-07-12 21:13:22 +02:00
psaux Remove C++ warnings. 2010-07-12 21:13:22 +02:00
pshinter Fix minor issues reported by <muktha.narayan@wipro.com>. 2010-09-13 07:32:22 +02:00
psnames Fix Savannah bug #30373. 2010-07-09 20:50:34 +09:00
raster Replace "%lx" for memory address by "%p", LLP64 platforms. 2010-10-25 00:14:13 +09:00
sfnt Fix Savannah bug #31275. 2010-10-08 18:40:18 +02:00
smooth Fix thinko in spline flattening. 2010-10-15 20:44:15 +02:00
tools Fix C++ compilation issue. 2010-07-11 09:28:21 +02:00
truetype Replace "%lx" for memory address by "%p", LLP64 platforms. 2010-10-25 00:14:13 +09:00
type1 Typo. 2010-10-08 12:05:40 +02:00
type42 Fix Savannah bug #30656. 2010-08-05 23:15:26 +02:00
winfonts Fix minor issues reported by <muktha.narayan@wipro.com>. 2010-09-13 07:32:22 +02:00
Jamfile Add license. 2005-06-04 23:04:30 +00:00