Add size utils
This commit is contained in:
parent
8ed372d938
commit
1fb340561f
@ -3,6 +3,11 @@
|
||||
|
||||
#include "aliases.h"
|
||||
|
||||
#define KB(SIZE) (SIZE * 1024ull)
|
||||
#define MB(SIZE) (KB(SIZE) * 1024)
|
||||
#define GB(SIZE) (MB(SIZE) * 1024)
|
||||
#define TB(SIZE) (GB(SIZE) * 1024)
|
||||
|
||||
#define wapp_misc_utils_padding_size(SIZE) \
|
||||
u8 reserved_padding[sizeof(void *) - ((SIZE) % sizeof(void *))]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user