Files
wii-ipl/include/decomp/decomp_utils.h
koopthekoopa 20209f83b1 Split iplwww.a
2024-08-08 09:10:44 +01:00

16 lines
367 B
C

#ifndef DECOMP_UTILS_H
#define DECOMP_UTILS_H
#define ARRSIZE(x) (sizeof(x) / sizeof(x[0]))
#define ROUNDUP(x, a) (((unsigned int)(x) + (a) - 1) & ~((a) - 1))
#define PTR_ROUNDUP(x, a) ((void*)(((unsigned int)(x) + ((a) - 1)) & ~((a) - 1)))
#ifdef UNIT_DOESNT_MATCH
#error This unit does not match yet. Use the assembly instead.
#endif
#endif // DECOMP_UTILS_H