Lines Matching refs:ali
291 static inline size_t ALIGN_TO(size_t l, size_t ali) { in ALIGN_TO() argument
297 assert(__builtin_popcount(ali) == 1); in ALIGN_TO()
299 assert(__builtin_popcountl(ali) == 1); in ALIGN_TO()
301 assert(__builtin_popcountll(ali) == 1); in ALIGN_TO()
306 if (l > SIZE_MAX - (ali - 1)) in ALIGN_TO()
309 return ((l + ali - 1) & ~(ali - 1)); in ALIGN_TO()
313 #define CONST_ALIGN_TO(l, ali) \ argument
316 __builtin_constant_p(ali) && \
317 __builtin_popcountll(ali) == 1 && /* is power of 2? */ \
318 (l <= SIZE_MAX - (ali - 1)), /* overflow? */ \
319 ((l) + (ali) - 1) & ~((ali) - 1), \