diff options
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index 84a453a8f2..99dc733853 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -65,6 +65,8 @@ #error "Wut? Pointers are neither 4 nor 8 bytes long?" #endif +#define ALIGN8_PTR(p) ((void*) ALIGN8((unsigned long) p)) + static inline size_t ALIGN_TO(size_t l, size_t ali) { return ((l + ali - 1) & ~(ali - 1)); } |