|
|
@ -52,7 +52,13 @@ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/* Hints to the compiler about likely/unlikely branches. */ |
|
|
|
/* Hints to the compiler about likely/unlikely branches. */ |
|
|
|
|
|
|
|
#ifdef __GNUC__ |
|
|
|
#define UPB_LIKELY(x) __builtin_expect((x),1) |
|
|
|
#define UPB_LIKELY(x) __builtin_expect((x),1) |
|
|
|
|
|
|
|
#define UPB_UNLIKELY(x) __builtin_expect((x),0) |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define UPB_LIKELY(x) (x) |
|
|
|
|
|
|
|
#define UPB_UNLIKELY(x) (x) |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/* Define UPB_BIG_ENDIAN manually if you're on big endian and your compiler |
|
|
|
/* Define UPB_BIG_ENDIAN manually if you're on big endian and your compiler |
|
|
|
* doesn't provide these preprocessor symbols. */ |
|
|
|
* doesn't provide these preprocessor symbols. */ |
|
|
|