Lines Matching refs:nb
647 #define is_small_request(nb) (nb < MAX_SMALLBIN_SIZE - SMALLBIN_WIDTH) argument
1063 static void malloc_extend_top(INTERNAL_SIZE_T nb) in malloc_extend_top() argument
1065 static void malloc_extend_top(nb) INTERNAL_SIZE_T nb; in malloc_extend_top()
1080 INTERNAL_SIZE_T sbrk_size = nb + top_pad + MINSIZE;
1255 INTERNAL_SIZE_T nb; local
1270 nb = request2size(bytes); /* padded request size; */
1274 if (is_small_request(nb)) /* Faster version for small requests */
1276 idx = smallbin_index(nb);
1294 check_malloced_chunk(victim, nb);
1303 idx = bin_index(nb);
1309 remainder_size = victim_size - nb;
1321 check_malloced_chunk(victim, nb);
1335 remainder_size = victim_size - nb;
1339 remainder = chunk_at_offset(victim, nb);
1340 set_head(victim, nb | PREV_INUSE);
1344 check_malloced_chunk(victim, nb);
1353 check_malloced_chunk(victim, nb);
1398 remainder_size = victim_size - nb;
1402 remainder = chunk_at_offset(victim, nb);
1403 set_head(victim, nb | PREV_INUSE);
1408 check_malloced_chunk(victim, nb);
1416 check_malloced_chunk(victim, nb);
1458 if ( (remainder_size = chunksize(top) - nb) < (long)MINSIZE)
1463 if ((unsigned long)nb >= (unsigned long)mmap_threshold &&
1464 (victim = mmap_chunk(nb)))
1469 malloc_extend_top(nb);
1470 if ( (remainder_size = chunksize(top) - nb) < (long)MINSIZE)
1475 set_head(victim, nb | PREV_INUSE);
1476 top = chunk_at_offset(victim, nb);
1478 check_malloced_chunk(victim, nb);
1652 INTERNAL_SIZE_T nb; /* padded request size */ local
1696 nb = request2size(bytes);
1702 newp = mremap_chunk(oldp, nb);
1706 if(oldsize - SIZE_SZ >= nb) return oldmem; /* do nothing */
1719 if ((long)(oldsize) < (long)(nb))
1732 if ((long)(nextsize + newsize) >= (long)(nb + MINSIZE))
1735 top = chunk_at_offset(oldp, nb);
1736 set_head(top, (newsize - nb) | PREV_INUSE);
1737 set_head_size(oldp, nb);
1743 else if (((long)(nextsize + newsize) >= (long)(nb)))
1770 if ((long)(nextsize + prevsize + newsize) >= (long)(nb + MINSIZE))
1777 top = chunk_at_offset(newp, nb);
1778 set_head(top, (newsize - nb) | PREV_INUSE);
1779 set_head_size(newp, nb);
1785 else if (((long)(nextsize + prevsize + newsize) >= (long)(nb)))
1798 if (prev != NULL && (long)(prevsize + newsize) >= (long)nb)
1835 if (newsize - nb >= MINSIZE) /* split off remainder */
1837 remainder = chunk_at_offset(newp, nb);
1838 remainder_size = newsize - nb;
1839 set_head_size(newp, nb);
1882 INTERNAL_SIZE_T nb; /* padded request size */ local
1896 nb = roundup(bytes, alignment);
1897 return malloc_simple(nb);
1911 nb = request2size(bytes);
1912 m = (char*)(mALLOc(nb + alignment + MINSIZE));
2001 assert (newsize >= nb && (((unsigned long)(chunk2mem(p))) % alignment) == 0);
2006 remainder_size = chunksize(p) - nb;
2010 remainder = chunk_at_offset(p, nb);
2012 set_head_size(p, nb);