1 # define inline inline __attribute__ ((always_inline))
2 # define __noreturn __attribute__ ((noreturn))
3 # define __malloc __attribute__ ((malloc))
4 # define __a_unused __attribute__ ((unused))
5 # define likely(x) __builtin_expect (!!(x), 1)
6 # define unlikely(x) __builtin_expect (!!(x), 0)
7 # define __must_check __attribute__ ((warn_unused_result))
8 # define __export __attribute__((visibility("default")))
10 * p is the number of the "format string" parameter, and q is the number of the
11 * first variadic parameter. The two extra macros hardcode those values p,q
12 * that are actually used by libosl.
14 #define __printf(p,q) __attribute__ ((format (printf, p, q)))
15 #define __printf_1_2 __printf(1,2)
16 #define __printf_2_3 __printf(2,3)
18 #define _static_inline_ static inline