Go to the documentation of this file. 59 #define MEM_ALIGN_MASK(a) ((size_t)(a) - 1U) 67 #define MEM_ALIGN_PREV(p, a) \ 69 ((size_t)(p) & ~MEM_ALIGN_MASK(a)) \ 78 #define MEM_ALIGN_NEXT(p, a) \ 80 MEM_ALIGN_PREV((size_t)(p) + MEM_ALIGN_MASK(a), (a)) \ 89 #define MEM_IS_ALIGNED(p, a) (((size_t)(p) & MEM_ALIGN_MASK(a)) == 0U) 97 #define MEM_IS_VALID_ALIGNMENT(a) \ 98 (((size_t)(a) != 0U) && (((size_t)(a) & ((size_t)(a) - 1U)) == 0U))