Branch Prediction Hint

LLVM Branch Weight Metadata

Linux Kernel Macro

#define likely(x)      __builtin_expect(!!(x), 1)
#define unlikely(x)    __builtin_expect(!!(x), 0)

#define likely(x) (x) on compilers that don’t support the __builtin_expect