Files
wii-ipl/include/decomp/decomp_utils.h
koopthekoopa e9c5fa20f6 Initial Commit
2024-04-15 17:06:11 +01:00

12 lines
271 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)))
#endif // DECOMP_UTILS_H