6#define ARRAY_SIZE(o) (sizeof((o)) / sizeof(*(o)))
9#define ALIGN_PREV(X, N) ((X) & ~((N)-1))
11#define ALIGN_NEXT(X, N) ALIGN_PREV(((X) + (N)-1), N)
12#define IS_ALIGNED(X, N) (((X) & ((N)-1)) == 0)
13#define IS_NOT_ALIGNED(X, N) (((X) & ((N)-1)) != 0)
15#define ROUND(n, a) (((u32)(n) + (a)-1) & ~((a)-1))
16#define TRUNC(n, a) (((u32)(n)) & ~((a)-1))
18#define JUT_EXPECT(...)
19#define FLAG_ON(V, F) (((V) & (F)) == 0)
21#define FLOAT_LABEL(x) (*(f32*)&x)
22#define DOUBLE_LABEL(x) (*(f64*)&x)
24#define _SDA_BASE_(dummy) 0
25#define _SDA2_BASE_(dummy) 0
28#define GLUE(a, b) a##b
29#define GLUE2(a, b) GLUE(a, b)
30#define STATIC_ASSERT(cond) typedef char GLUE2(static_assertion_failed, __LINE__)[(cond) ? 1 : -1]
32#define STATIC_ASSERT(...)
41#define FAST_DIV(x, n) (x >> (n / 2))
44#define DEAD_STRING(s) OSReport(s)
46#define UNK_BSS(name) \
47 static u8 lit_##name[1 + 3 ];
50 static u8 cNullVec__6Z2Calc[12] = { \
51 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
53 static u32 lit_1787[1 + 4 ] = { \
BOOL checkEqual(s32 a, s32 b)
Definition global.h:37
int __cntlzw(unsigned int)
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
signed long s32
Definition types.h:6