Lines Matching refs:newp
2505 mchunkptr newp; /* chunk to return */
2515 mchunkptr remainder; /* holds split off extra space from newp */
2530 newp = oldp = mem2chunk(oldmem);
2540 newp = mremap_chunk(oldp, nb);
2541 if(newp) return chunk2mem(newp);
2610 newp = prev;
2612 newmem = chunk2mem(newp);
2614 top = chunk_at_offset(newp, nb);
2616 set_head_size(newp, nb);
2626 newp = prev;
2628 newmem = chunk2mem(newp);
2638 newp = prev;
2640 newmem = chunk2mem(newp);
2653 /* Avoid copy if newp is next chunk after oldp. */
2656 if ( (newp = mem2chunk(newmem)) == next_chunk(oldp))
2658 newsize += chunksize(newp);
2659 newp = oldp;
2674 remainder = chunk_at_offset(newp, nb);
2676 set_head_size(newp, nb);
2683 set_head_size(newp, newsize);
2684 set_inuse_bit_at_offset(newp, newsize);
2687 check_inuse_chunk(newp);
2688 return chunk2mem(newp);
2723 mchunkptr newp; /* chunk to return */
2769 newp = (mchunkptr)brk;
2776 newp->prev_size = p->prev_size + leadsize;
2777 set_head(newp, newsize|IS_MMAPPED);
2778 return chunk2mem(newp);
2784 set_head(newp, newsize | PREV_INUSE);
2785 set_inuse_bit_at_offset(newp, newsize);
2788 p = newp;