Skip to content
Snippets Groups Projects

Dropped (UN)LIKELY macro

Merged Sebastien Ponce requested to merge sponce_attemptDropLIKELY into master
@@ -89,24 +89,6 @@ typedef unsigned long long int ulonglong;
#endif // GAUDI_V20_COMPAT
// ---------------------------------- Symbol visibility macros (end)
// -------------- LIKELY/UNLIKELY macros (begin)
// Use compiler hinting to improve branch prediction for linux
// if somebody defined these macros before us, clean up first
#if defined( LIKELY )
# undef LIKELY
#endif
#if defined( UNLIKELY )
# undef UNLIKELY
#endif
#if defined( __GNUC__ ) || defined( __clang__ )
# define LIKELY( x ) __builtin_expect( ( x ), 1 )
# define UNLIKELY( x ) __builtin_expect( ( x ), 0 )
#else
# define LIKELY( x ) x
# define UNLIKELY( x ) x
#endif
// -------------- LIKELY/UNLIKELY macros (end)
// -----------------------------------------------------------------------------
// Sanitizer suppressions
// Gcc
Loading