Lines Matching refs:alignment
39 memalign(size_t alignment, size_t n);
41 in accord with the alignment argument, which must be a power of
61 due to alignment and minimum size constraints.
73 8 byte alignment is currently hardwired into the design. This
738 2. It can lead to more wastage because of mmap page alignment
1291 /* Check if m has acceptable alignment */
1696 /* ... and alignment */
1976 /* Guarantee alignment of first new chunk made from this space */
2047 obtain 8-byte alignment and/or to obtain a size of at least
2699 within that chunk that meets the alignment request, and then
2702 The alignment argument must be a power of two. This property is not
2705 8-byte alignment is guaranteed by normal malloc calls, so don't
2714 Void_t* mEMALIGn(size_t alignment, size_t bytes)
2716 Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
2722 char* brk; /* alignment point within p */
2725 INTERNAL_SIZE_T leadsize; /* leading space befor alignment point */
2731 /* If need less alignment than we give anyway, just relay to malloc */
2733 if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes);
2737 if (alignment < MINSIZE) alignment = MINSIZE;
2739 /* Call malloc with worst case padding to hit alignment. */
2742 m = (char*)(mALLOc(nb + alignment + MINSIZE));
2748 if ((((unsigned long)(m)) % alignment) == 0) /* aligned */
2766 brk = (char*)mem2chunk(((unsigned long)(m + alignment - 1)) & -((signed) alignment));
2767 if ((long)(brk - (char*)(p)) < MINSIZE) brk = brk + alignment;
2790 assert (newsize >= nb && (((unsigned long)(chunk2mem(p))) % alignment) == 0);
2814 valloc just invokes memalign with alignment argument equal
3089 because of alignment and bookkeeping overhead.)
3203 avoid surprises about sbrk alignment conventions.