Lines Matching defs:alignment
158 #define MTMALLOC_MIN_ALIGN 8 /* min guaranteed alignment */
460 memalign(size_t alignment, size_t size)
467 if (size == 0 || alignment == 0 || misaligned(alignment) ||
468 (alignment & (alignment - 1)) != 0) {
474 if (alignment <= MTMALLOC_MIN_ALIGN)
477 alloc_size = size + alignment - MTMALLOC_MIN_ALIGN;
500 if ((offset = (uintptr_t)alloc_buf & (alignment - 1)) == 0) {
534 shift = alignment - offset;
873 /* get the correct cache list alignment */