freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] * src/cache/{ftcbasic.c, ftccmap.c}: Us


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/cache/{ftcbasic.c, ftccmap.c}: Use FTC_INLINE.
Date: Fri, 19 Apr 2024 18:46:57 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 9a2d6d97
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-04-19T14:45:39-04:00
    * src/cache/{ftcbasic.c,ftccmap.c}: Use FTC_INLINE.
    

2 changed files:

Changes:

  • src/cache/ftcbasic.c
    ... ... @@ -334,7 +334,7 @@
    334 334
     
    
    335 335
         hash = FTC_BASIC_ATTR_HASH( &query.attrs ) + gindex;
    
    336 336
     
    
    337
    -#if 1  /* inlining is about 50% faster! */
    
    337
    +#ifdef FTC_INLINE  /* inlining is about 50% faster! */
    
    338 338
         FTC_GCACHE_LOOKUP_CMP( cache,
    
    339 339
                                ftc_basic_family_compare,
    
    340 340
                                ftc_gnode_compare,
    
    ... ... @@ -534,7 +534,7 @@
    534 534
         hash = FTC_BASIC_ATTR_HASH( &query.attrs ) +
    
    535 535
                gindex / FTC_SBIT_ITEMS_PER_NODE;
    
    536 536
     
    
    537
    -#if 1  /* inlining is about 50% faster! */
    
    537
    +#ifdef FTC_INLINE  /* inlining is about 50% faster! */
    
    538 538
         FTC_GCACHE_LOOKUP_CMP( cache,
    
    539 539
                                ftc_basic_family_compare,
    
    540 540
                                ftc_snode_compare,
    

  • src/cache/ftccmap.c
    ... ... @@ -264,7 +264,7 @@
    264 264
     
    
    265 265
         hash = FTC_CMAP_HASH( face_id, (FT_UInt)cmap_index, char_code );
    
    266 266
     
    
    267
    -#if 1
    
    267
    +#ifdef FTC_INLINE
    
    268 268
         FTC_CACHE_LOOKUP_CMP( cache, ftc_cmap_node_compare, hash, &query,
    
    269 269
                               node, error );
    
    270 270
     #else
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]