Lines Matching refs:alignment

401 /* Check if m has acceptable alignment */
886 /* ... and alignment */
1163 /* Guarantee alignment of first new chunk made from this space */
1234 obtain 8-byte alignment and/or to obtain a size of at least
1946 within that chunk that meets the alignment request, and then
1949 The alignment argument must be a power of two. This property is not
1952 8-byte alignment is guaranteed by normal malloc calls, so don't
1962 Void_t* mEMALIGn_impl(size_t alignment, size_t bytes)
1964 Void_t* mEMALIGn_impl(alignment, bytes) size_t alignment; size_t bytes;
1970 char* brk; /* alignment point within p */
1973 INTERNAL_SIZE_T leadsize; /* leading space befor alignment point */
1981 return memalign_simple(alignment, bytes);
1985 /* If need less alignment than we give anyway, just relay to malloc */
1987 if (alignment <= MALLOC_ALIGNMENT) return mALLOc_impl(bytes);
1991 if (alignment < MINSIZE) alignment = MINSIZE;
1993 /* Call malloc with worst case padding to hit alignment. */
1996 m = (char*)(mALLOc_impl(nb + alignment + MINSIZE));
2014 if ((((unsigned long)(m)) % alignment) == 0)
2018 * acquire alignment.
2022 extra = alignment - (((unsigned long)(m)) % alignment);
2027 * If (!m), extra2=alignment so
2030 extra2 = alignment - (((unsigned long)(m)) % alignment);
2043 if ((((unsigned long)(m)) % alignment) == 0) /* aligned */
2061 brk = (char*)mem2chunk(((unsigned long)(m + alignment - 1)) & -((signed) alignment));
2062 if ((long)(brk - (char*)(p)) < MINSIZE) brk = brk + alignment;
2086 assert (newsize >= nb && (((unsigned long)(chunk2mem(p))) % alignment) == 0);
2112 valloc just invokes memalign with alignment argument equal
2268 Void_t *mEMALIGn(size_t alignment, size_t bytes)
2271 size_t fullsz = mcheck_memalign_prehook(alignment, bytes);
2272 void *p = mEMALIGn_impl(alignment, fullsz);
2276 return mcheck_memalign_posthook(alignment, p, bytes);
2485 because of alignment and bookkeeping overhead.)
2625 avoid surprises about sbrk alignment conventions.