freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] Additional `FT_MSB` macro definitions.


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] Additional `FT_MSB` macro definitions.
Date: Fri, 01 Oct 2021 15:53:22 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • include/freetype/internal/ftcalc.h
    ... ... @@ -370,8 +370,7 @@ FT_BEGIN_HEADER
    370 370
     
    
    371 371
     #define FT_MSB( x )  ( 31 - __builtin_clzl( x ) )
    
    372 372
     
    
    373
    -#endif /* __GNUC__ */
    
    374
    -
    
    373
    +#endif
    
    375 374
     
    
    376 375
     #elif defined( _MSC_VER ) && ( _MSC_VER >= 1400 )
    
    377 376
     
    
    ... ... @@ -395,11 +394,23 @@ FT_BEGIN_HEADER
    395 394
     
    
    396 395
     #endif
    
    397 396
     
    
    398
    -#endif /* _MSC_VER */
    
    397
    +#elif defined( __DECC ) || defined( __DECCXX )
    
    398
    +
    
    399
    +#include <builtins.h>
    
    399 400
     
    
    401
    +#define FT_MSB( x )  (FT_Int)( 63 - _leadz( x ) )
    
    402
    +
    
    403
    +#elif defined( _CRAYC )
    
    404
    +
    
    405
    +#include <intrinsics.h>
    
    406
    +
    
    407
    +#define FT_MSB( x )  (FT_Int)( 31 - _leadz32( x ) )
    
    408
    +
    
    409
    +#endif /* FT_MSB macro definitions */
    
    400 410
     
    
    401 411
     #endif /* !FT_CONFIG_OPTION_NO_ASSEMBLER */
    
    402 412
     
    
    413
    +
    
    403 414
     #ifndef FT_MSB
    
    404 415
     
    
    405 416
       FT_BASE( FT_Int )
    


  • reply via email to

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