2
* ---------------------------------------------------
3
* Use compiler builtins for better compilation
4
* results. Taken from the linux kernel source
5
* ---------------------------------------------------
7
#ifndef COMPILER_EXTENSIONS_H
8
#define COMPILER_EXTENSIONS_H
11
#define likely(x) __builtin_expect(!!(x), 1)
12
#define unlikely(x) __builtin_expect(!!(x), 0)
18
#define UNUSED __attribute__((unused))