ModErn Text Analysis
META Enumerates Textual Applications
likely.h
Go to the documentation of this file.
1 
10 #ifndef META_UTIL_LIKELY_H_
11 #define META_UTIL_LIKELY_H_
12 
13 #include "meta/config.h"
14 
15 #if META_HAS_BUILTIN_EXPECT
16 #define META_LIKELY(x) __builtin_expect(!!(x), 1)
17 #define META_UNLIKELY(x) __builtin_expect(!!(x), 0)
18 #else
19 #define META_LIKELY(x) x
20 #define META_UNLIKELY(x) x
21 #endif
22 
23 #endif