Go to the documentation of this file. 60 #define MEM_ALIGN_MASK(a) ((size_t)(a) - 1U) 68 #define MEM_ALIGN_PREV(p, a) \ 70 ((size_t)(p) & ~MEM_ALIGN_MASK(a)) \ 79 #define MEM_ALIGN_NEXT(p, a) \ 81 MEM_ALIGN_PREV((size_t)(p) + MEM_ALIGN_MASK(a), (a)) \ 90 #define MEM_IS_ALIGNED(p, a) (((size_t)(p) & MEM_ALIGN_MASK(a)) == 0U) 98 #define MEM_IS_VALID_ALIGNMENT(a) \ 99 (((size_t)(a) != 0U) && (((size_t)(a) & ((size_t)(a) - 1U)) == 0U))