1 #ifndef __LUNAIX_COMPILER_H
2 #define __LUNAIX_COMPILER_H
4 #define likely(x) __builtin_expect((x), 1)
5 #define unlikely(x) __builtin_expect((x), 0)
7 #define weak_alias(name) __attribute__((weak, alias(name)))
8 #define weak __attribute__((weak))
9 #define noret __attribute__((noreturn))
11 #define stringify(v) #v
12 #define stringify__(v) stringify(v)
14 inline static void noret
17 volatile int __infloop = 1;
20 __builtin_unreachable();
23 #endif /* __LUNAIX_COMPILER_H */