5 * various compiler macros and common functions
9 #define __unused __attribute__ ((__unused__))
13 #define __packed __attribute__ ((__packed__))
17 #define __aligned(x) __attribute__((__aligned__(x)))
20 /* defined as assert */
21 void panic(const char *fmt, ...);
23 #define KASSERT(exp,msg) do { \
24 if (__predict_false(!(exp))) \
28 /* don't bother to optimize */
29 #ifndef __predict_false
30 #define __predict_false(x) (x) /* __builtin_expect((exp), 0) */
33 #endif /* !_CDEFS_H_ */