Add size utils

This commit is contained in:
Abdelrahman Said 2024-08-23 21:48:38 +01:00
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 *))]