From 9a2d6d97b2d8a5d22d02948b783df12b764afa2d Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Fri, 19 Apr 2024 14:45:39 -0400 Subject: [PATCH] * src/cache/{ftcbasic.c,ftccmap.c}: Use FTC_INLINE. --- src/cache/ftcbasic.c | 4 ++-- src/cache/ftccmap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cache/ftcbasic.c b/src/cache/ftcbasic.c index b6e13fd7b..742d93515 100644 --- a/src/cache/ftcbasic.c +++ b/src/cache/ftcbasic.c @@ -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, diff --git a/src/cache/ftccmap.c b/src/cache/ftccmap.c index 43c507361..b5c61e816 100644 --- a/src/cache/ftccmap.c +++ b/src/cache/ftccmap.c @@ -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