Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
|
00001 #ifndef H_BRANCH_PREDICT 00002 #define H_BRANCH_PREDICT 00003 00004 #ifdef __GNUC__ 00005 #define LIKELY(x) __builtin_expect((x),1) 00006 #define UNLIKELY(x) __builtin_expect((x),0) 00007 #else 00008 #define LIKELY(x) (x) 00009 #define UNLIKELY(x) (x) 00010 #endif // __GNUC__ 00011 00012 #endif