00001 #ifndef CXXUTILS_ATHUNLIKELYMACROS_H
00002 #define CXXUTILS_ATHUNLIKELYMACROS_H 1
00003
00004
00005
00006
00007
00008 #if __GNUC__ >= 4
00009 # define ATH_LIKELY(x) __builtin_expect(!!(x), 1)
00010 # define ATH_UNLIKELY(x) __builtin_expect(!!(x), 0)
00011 #else
00012 # define ATH_LIKELY(x) (x)
00013 # define ATH_UNLIKELY(x) (x)
00014 #endif
00015
00016 #endif