Lines Matching defs:end
206 static void *end;
223 if (p != end) {
234 /* Record new heap end and fill in footer. */
235 end = (char *)p + n;
236 w = MEM_TO_CHUNK(end);
241 * zero-size sentinel header at the old end-of-heap. */
245 calculate_checksum(w, MEM_TO_CHUNK(end));
662 void __malloc_donate(char *start, char *end)
669 size_t align_end_down = (SIZE_ALIGN-1) & (uintptr_t)end;
673 * multiple of SIZE_ALIGN bytes between start and end. */
675 if (end - start <= BLOCK_HEAD + align_start_up + align_end_down)
679 if (end - start <= OVERHEAD + align_start_up + align_end_down)
683 end -= align_end_down;
688 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end);
690 c->csize = n->psize = C_INUSE | (end-start);