add lunaix dynamic linker as submodule
[lunaix-os.git] / lunaix-os / includes / lunaix / compiler.h
1 #ifndef __LUNAIX_COMPILER_H
2 #define __LUNAIX_COMPILER_H
3
4 #define likely(x) __builtin_expect((x), 1)
5 #define unlikely(x) __builtin_expect((x), 0)
6
7 #define weak_alias(name) __attribute__((weak, alias(name)))
8 #define noret __attribute__((noreturn))
9 #endif /* __LUNAIX_COMPILER_H */