Lines Matching defs:alignment

78   memalign(size_t alignment, size_t n);
80 in accord with the alignment argument, which must be a power of
100 due to alignment and minimum size constraints.
120 (i.e., 8 byte alignment with 4byte size_t). This suffices for
159 appear as negative after accounting for overhead and alignment
418 this case the alignment requirements turn out to negate any
438 MALLOC_ALIGNMENT is the minimum alignment for malloc'ed chunks.
442 are optimized for the case of 8-byte alignment.)
714 chunksize units, which adds padding and alignment. You can reduce
847 2. It can lead to more wastage because of mmap page alignment
1235 Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {
1240 m = mEMALIGn(alignment, bytes);
1692 Size and alignment checks and conversions
1707 /* Check if m has acceptable alignment */
2449 /* ... and alignment */
2506 /* alignment is a power of 2 */
2675 returned start address to meet alignment requirements here
2746 this is not first time through, this preserves page-alignment of
2841 /* Guarantee alignment of first new chunk made from this space */
3106 alignment and/or to obtain a size of at least MINSIZE, the
4040 within that chunk that meets the alignment request, and then
4046 8-byte alignment is guaranteed by normal malloc calls, so don't
4054 Void_t* mEMALIGn(size_t alignment, size_t bytes)
4056 Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
4062 char* brk; /* alignment point within p */
4065 INTERNAL_SIZE_T leadsize; /* leading space befor alignment point */
4070 /* If need less alignment than we give anyway, just relay to malloc */
4072 if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes);
4076 if (alignment < MINSIZE) alignment = MINSIZE;
4078 /* Make sure alignment is power of 2 (in case MINSIZE is not). */
4079 if ((alignment & (alignment - 1)) != 0) {
4081 while ((unsigned long)a < (unsigned long)alignment) a <<= 1;
4082 alignment = a;
4087 /* Call malloc with worst case padding to hit alignment. */
4089 m = (char*)(mALLOc(nb + alignment + MINSIZE));
4095 if ((((unsigned long)(m)) % alignment) != 0) { /* misaligned */
4105 brk = (char*)mem2chunk(((unsigned long)(m + alignment - 1)) &
4106 -((signed long) alignment));
4108 brk = brk + alignment;
4130 (((unsigned long)(chunk2mem(p))) % alignment) == 0);
4234 valloc just invokes memalign with alignment argument equal
4408 because of alignment and bookkeeping overhead. Because it includes
4409 alignment wastage as being in use, this figure may be greater than zero
5023 * memalign: check alignment arg
5081 avoid surprises about sbrk alignment conventions.