mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
some J3D/misc cleanup (#2628)
* some j3d cleanup * begin using uintptr_t * j3dgraphbase cleanup * j3dgraphanimator cleanup
This commit is contained in:
+2
-1
@@ -23,7 +23,8 @@
|
||||
|
||||
#define ALIGN_DECL(ALIGNMENT) __attribute__((aligned(ALIGNMENT)))
|
||||
|
||||
#define ARRAY_SIZE(o) (sizeof((o)) / sizeof(*(o)))
|
||||
#define ARRAY_SIZE(o) (s32)(sizeof((o)) / sizeof(*(o)))
|
||||
#define ARRAY_SIZEU(o) (sizeof((o)) / sizeof(*(o)))
|
||||
|
||||
// Align X to the previous N bytes (N must be power of two)
|
||||
#define ALIGN_PREV(X, N) ((X) & ~((N)-1))
|
||||
|
||||
Reference in New Issue
Block a user