pvAccessCPP  7.1.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
likely.h
1 
7 #ifndef LIKELY_H_
8 #define LIKELY_H_
9 
10 #if defined(__GNUC__) && __GNUC__ >= 3
11 #define likely(x) __builtin_expect (x, 1)
12 #define unlikely(x) __builtin_expect (x, 0)
13 #else
14 #define likely(x) (x)
15 #define unlikely(x) (x)
16 #endif
17 
18 #endif /* LIKELY_H_ */