This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Given a size, round up to aligenment sizeof(void*) */ | |
#define MAX_ALIGNMENT 4 | |
#define ROUND_UP_TO_ALIGNMENT_SIZE(x) (((x) + MAX_ALIGNMENT - 1u) & ~(MAX_ALIGNMENT - 1u)) |