Lines Matching refs:rsize
4242 size_t rsize = m->topsize -= nb; in sys_alloc() local
4245 r->head = rsize | PINUSE_BIT; in sys_alloc()
4448 size_t rsize = -nb; /* Unsigned negation */ in tmalloc_large() local
4459 if (trem < rsize) { in tmalloc_large()
4461 if ((rsize = trem) == 0) in tmalloc_large()
4487 if (trem < rsize) { in tmalloc_large()
4488 rsize = trem; in tmalloc_large()
4495 if (v != 0 && rsize < (size_t)(m->dvsize - nb)) { in tmalloc_large()
4498 assert(chunksize(v) == rsize + nb); in tmalloc_large()
4501 if (rsize < MIN_CHUNK_SIZE) in tmalloc_large()
4502 set_inuse_and_pinuse(m, v, (rsize + nb)); in tmalloc_large()
4505 set_size_and_pinuse_of_free_chunk(r, rsize); in tmalloc_large()
4506 insert_chunk(m, r, rsize); in tmalloc_large()
4519 size_t rsize; in tmalloc_small() local
4524 rsize = chunksize(t) - nb; in tmalloc_small()
4528 if (trem < rsize) { in tmalloc_small()
4529 rsize = trem; in tmalloc_small()
4536 assert(chunksize(v) == rsize + nb); in tmalloc_small()
4539 if (rsize < MIN_CHUNK_SIZE) in tmalloc_small()
4540 set_inuse_and_pinuse(m, v, (rsize + nb)); in tmalloc_small()
4543 set_size_and_pinuse_of_free_chunk(r, rsize); in tmalloc_small()
4544 replace_dv(m, r, rsize); in tmalloc_small()
4610 size_t rsize; in dlmalloc() local
4619 rsize = small_index2size(i) - nb; in dlmalloc()
4621 if (SIZE_T_SIZE != 4 && rsize < MIN_CHUNK_SIZE) in dlmalloc()
4626 set_size_and_pinuse_of_free_chunk(r, rsize); in dlmalloc()
4627 replace_dv(gm, r, rsize); in dlmalloc()
4651 size_t rsize = gm->dvsize - nb; in dlmalloc() local
4653 if (rsize >= MIN_CHUNK_SIZE) { /* split dv */ in dlmalloc()
4655 gm->dvsize = rsize; in dlmalloc()
4656 set_size_and_pinuse_of_free_chunk(r, rsize); in dlmalloc()
4671 size_t rsize = gm->topsize -= nb; in dlmalloc() local
4674 r->head = rsize | PINUSE_BIT; in dlmalloc()
4842 size_t rsize = oldsize - nb; in try_realloc_chunk() local
4843 if (rsize >= MIN_CHUNK_SIZE) { /* split off remainder */ in try_realloc_chunk()
4846 set_inuse(m, r, rsize); in try_realloc_chunk()
4847 dispose_chunk(m, r, rsize); in try_realloc_chunk()
4888 size_t rsize = oldsize + nextsize - nb; in try_realloc_chunk() local
4890 if (rsize < MIN_CHUNK_SIZE) { in try_realloc_chunk()
4897 set_inuse(m, r, rsize); in try_realloc_chunk()
4898 dispose_chunk(m, r, rsize); in try_realloc_chunk()
5567 size_t rsize; in mspace_malloc() local
5576 rsize = small_index2size(i) - nb; in mspace_malloc()
5578 if (SIZE_T_SIZE != 4 && rsize < MIN_CHUNK_SIZE) in mspace_malloc()
5583 set_size_and_pinuse_of_free_chunk(r, rsize); in mspace_malloc()
5584 replace_dv(ms, r, rsize); in mspace_malloc()
5608 size_t rsize = ms->dvsize - nb; in mspace_malloc() local
5610 if (rsize >= MIN_CHUNK_SIZE) { /* split dv */ in mspace_malloc()
5612 ms->dvsize = rsize; in mspace_malloc()
5613 set_size_and_pinuse_of_free_chunk(r, rsize); in mspace_malloc()
5628 size_t rsize = ms->topsize -= nb; in mspace_malloc() local
5631 r->head = rsize | PINUSE_BIT; in mspace_malloc()