6#define VERSION_GCN_USA 0
7#define VERSION_GCN_PAL 1
8#define VERSION_GCN_JPN 2
9#define VERSION_SHIELD_DEBUG 3
11#define ALIGN_DECL(ALIGNMENT) __attribute__((aligned(ALIGNMENT)))
13#define ARRAY_SIZE(o) (sizeof((o)) / sizeof(*(o)))
16#define ALIGN_PREV(X, N) ((X) & ~((N)-1))
18#define ALIGN_NEXT(X, N) ALIGN_PREV(((X) + (N)-1), N)
19#define IS_ALIGNED(X, N) (((X) & ((N)-1)) == 0)
20#define IS_NOT_ALIGNED(X, N) (((X) & ((N)-1)) != 0)
22#define ROUND(n, a) (((u32)(n) + (a)-1) & ~((a)-1))
23#define TRUNC(n, a) (((u32)(n)) & ~((a)-1))
25#define JUT_EXPECT(...)
26#define FLAG_ON(V, F) (((V) & (F)) == 0)
28#define FLOAT_LABEL(x) (*(f32*)&x)
29#define DOUBLE_LABEL(x) (*(f64*)&x)
31#define _SDA_BASE_(dummy) 0
32#define _SDA2_BASE_(dummy) 0
35#define GLUE(a, b) a##b
36#define GLUE2(a, b) GLUE(a, b)
38#if VERSION != VERSION_SHIELD_DEBUG
39#define STATIC_ASSERT(cond) typedef char GLUE2(static_assertion_failed, __LINE__)[(cond) ? 1 : -1]
41#define STATIC_ASSERT(...)
44#define STATIC_ASSERT(...)
57#define FAST_DIV(x, n) (x >> (n / 2))
59#define SQUARE(x) ((x) * (x))
62#define DEAD_STRING(s) OSReport(s)
64#define UNK_BSS(name) \
65 static u8 lit_##name[1 + 3 ];
68 static u8 lit_1109[1]; \
69 static u8 lit_1107[1]; \
70 static u8 lit_1105[1]; \
71 static u8 lit_1104[1]; \
72 static u8 lit_1099[1]; \
73 static u8 lit_1097[1]; \
74 static u8 lit_1095[1]; \
75 static u8 lit_1094[1]; \
76 static u8 lit_1057[1]; \
77 static u8 lit_1055[1]; \
78 static u8 lit_1053[1]; \
79 static u8 lit_1052[1]; \
80 static u8 lit_1014[1]; \
81 static u8 lit_1012[1]; \
82 static u8 lit_1010[1]; \
83 static u8 lit_1009[1];
87 static u8 cNullVec__6Z2Calc[12] = { \
88 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
90 static u32 lit_1787[1 + 4 ] = { \
98#define READU32_BE(ptr, offset) \
99 (((u32)ptr[offset] << 24) | ((u32)ptr[offset + 1] << 16) | ((u32)ptr[offset + 2] << 8) | (u32)ptr[offset + 3]);
BOOL checkEqual(s32 a, s32 b)
Definition global.h:49
int __cntlzw(unsigned int)
void * __memcpy(void *, const void *, int)
int BOOL
Definition types.h:30
unsigned long u32
Definition types.h:9
signed long s32
Definition types.h:8