diff options
Diffstat (limited to '')
-rw-r--r-- | syshead.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -36,6 +36,15 @@ #endif #endif +/* branch prediction hints */ +#if defined(__GNUC__) +# define likely(x) __builtin_expect((x),1) +# define unlikely(x) __builtin_expect((x),0) +#else +# define likely(x) (x) +# define unlikely(x) (x) +#endif + #if defined(_WIN32) && !defined(WIN32) #define WIN32 #endif |