00001
00002
00013 #ifndef ATHCONTAINERS_LIKELY_H
00014 #define ATHCONTAINERS_LIKELY_H
00015
00016
00017 #if __GNUC__ >= 4 || defined(__clang__)
00018 # define ATHCONTAINERS_LIKELY(x) __builtin_expect(!!(x), 1)
00019 # define ATHCONTAINERS_UNLIKELY(x) __builtin_expect(!!(x), 0)
00020 #else
00021 # define ATHCONTAINERS_LIKELY(x) (x)
00022 # define ATHCONTAINERS_UNLIKELY(x) (x)
00023 #endif
00024
00025
00026 #endif // not ATHCONTAINERS_LIKELY_H