freetype/src
suzuki toshiya 9a2e255b23 [cache] Deduplicate the code to get the top node by a hash.
There are several duplicated codes getting the top node
from a cache by a given hash, like:

    idx = hash & cache->mask;
    if ( idx < cache->p )
      idx = hash & ( cache->mask * 2 + 1 );
    pnode = cache->buckets + idx;

To deduplicate them, a cpp-macro to do same work
FTC_NODE__TOP_FOR_HASH( cache, hash ) is introduced.
For non-inlined config, non-ftc_get_top_node_for_hash() is
also introduced.

* src/cache/ftccache.h (FTC_NODE__TOP_FOR_HASH): Declare
and implement inlined version.
(FTC_CACHE_LOOKUP_CMP): Use FTC_NODE__TOP_FOR_HASH().
* src/cache/ftccache.c (ftc_get_top_node_for_hash): Non-
inlined version.
(ftc_node_hash_unlink): Use FTC_NODE__TOP_FOR_HASH().
(ftc_node_hash_link): Ditto.
(FTC_Cache_Lookup): Ditto.
2011-01-09 21:09:58 +09:00
..
autofit */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
base Fix parameter handling of `FT_Set_Renderer'. 2010-12-13 20:17:26 +01:00
bdf Remove C++ warnings. 2010-07-12 21:13:22 +02:00
bzip2 Add bzip2 compression support to handle *.pcf.bz2 files. 2010-12-31 16:59:33 +01:00
cache [cache] Deduplicate the code to get the top node by a hash. 2011-01-09 21:09:58 +09:00
cff */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01: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 Improve bzip2 support. 2010-12-31 17:47:09 +01:00
pfr Remove C++ warnings. 2010-07-12 21:13:22 +02:00
psaux * src/psaux/t1decode.c (t1_decoder_parse_charstring): Expand 2010-11-23 19:30:38 +01:00
pshinter */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
psnames */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
raster */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
sfnt */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
smooth */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
tools Fix C++ compilation issue. 2010-07-11 09:28:21 +02:00
truetype */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
type1 [type1] Fix matrix normalization. 2010-11-18 10:36:59 +01: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