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