* src/cache/{ftcbasic.c,ftccmap.c}: Use FTC_INLINE.
This commit is contained in:
parent
dbdcd75889
commit
9a2d6d97b2
4
src/cache/ftcbasic.c
vendored
4
src/cache/ftcbasic.c
vendored
@ -334,7 +334,7 @@
|
||||
|
||||
hash = FTC_BASIC_ATTR_HASH( &query.attrs ) + gindex;
|
||||
|
||||
#if 1 /* inlining is about 50% faster! */
|
||||
#ifdef FTC_INLINE /* inlining is about 50% faster! */
|
||||
FTC_GCACHE_LOOKUP_CMP( cache,
|
||||
ftc_basic_family_compare,
|
||||
ftc_gnode_compare,
|
||||
@ -534,7 +534,7 @@
|
||||
hash = FTC_BASIC_ATTR_HASH( &query.attrs ) +
|
||||
gindex / FTC_SBIT_ITEMS_PER_NODE;
|
||||
|
||||
#if 1 /* inlining is about 50% faster! */
|
||||
#ifdef FTC_INLINE /* inlining is about 50% faster! */
|
||||
FTC_GCACHE_LOOKUP_CMP( cache,
|
||||
ftc_basic_family_compare,
|
||||
ftc_snode_compare,
|
||||
|
2
src/cache/ftccmap.c
vendored
2
src/cache/ftccmap.c
vendored
@ -264,7 +264,7 @@
|
||||
|
||||
hash = FTC_CMAP_HASH( face_id, (FT_UInt)cmap_index, char_code );
|
||||
|
||||
#if 1
|
||||
#ifdef FTC_INLINE
|
||||
FTC_CACHE_LOOKUP_CMP( cache, ftc_cmap_node_compare, hash, &query,
|
||||
node, error );
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user