Lines Matching refs:SIZE
95 size_t sz = SIZE(tp) / sizeof (uint64_t); in copy_pattern()
138 SIZE(tp) = size; in smalloc()
158 SETBIT0(SIZE(tp)); in smalloc()
201 if (SIZE(tp) >= size) { /* branch left */ in malloc_unlocked()
202 if (n == 0 || n >= SIZE(tp)) { in malloc_unlocked()
204 n = SIZE(tp); in malloc_unlocked()
240 if (size <= SIZE(Bottom)) { in malloc_unlocked()
242 CLRBITS01(SIZE(sp)); in malloc_unlocked()
258 CLRBIT1(SIZE(tmp)); in malloc_unlocked()
259 ASSERT(ISBIT0(SIZE(tmp))); in malloc_unlocked()
264 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) { in malloc_unlocked()
266 SIZE(sp) = size; in malloc_unlocked()
269 SIZE(tp) = n | BIT0; in malloc_unlocked()
276 SIZE(sp) |= BIT0; in malloc_unlocked()
315 ts = SIZE(tp); in realloc()
326 CLRBITS01(SIZE(tp)); in realloc()
327 if (size == SIZE(tp)) { /* nothing to do */ in realloc()
328 SIZE(tp) = ts; in realloc()
335 if (size < MINSIZE || SIZE(tp) < MINSIZE) { in realloc()
337 SETOLD01(SIZE(tp), ts); in realloc()
346 if (size > SIZE(tp)) { in realloc()
350 if (ISBIT0(SIZE(np))) in realloc()
354 ASSERT(SIZE(np) >= MINSIZE); in realloc()
355 ASSERT(!ISBIT1(SIZE(np))); in realloc()
356 SIZE(tp) += SIZE(np) + WORDSIZE; in realloc()
364 CLRBIT1(SIZE(tmp)); in realloc()
369 if (size > SIZE(tp) && BOTTOM(tp) && GETCORE(0) == Baddr) { in realloc()
381 if (size <= SIZE(tp)) { in realloc()
384 if ((n = (SIZE(tp) - size)) >= MINSIZE + WORDSIZE) { in realloc()
386 SIZE(tp) = size; in realloc()
389 SIZE(np) = n | BIT0; in realloc()
395 SETOLD01(SIZE(tp), ts); in realloc()
402 SETOLD01(SIZE(tp), ts); in realloc()
430 CLRBITS01(SIZE(tp)); in realloc()
431 if (SIZE(tp) < MINSIZE) { in realloc()
432 if (size < SIZE(tp)) /* case 1. */ { in realloc()
433 SETOLD01(SIZE(tp), ts); in realloc()
447 if ((SIZE(np) + SIZE(tp) + WORDSIZE) >= size) { in realloc()
448 ASSERT(!ISBIT0(SIZE(np))); in realloc()
450 SIZE(np) += SIZE(tp) + WORDSIZE; in realloc()
454 (void) memmove(DATA(np), old, SIZE(tp)); in realloc()
462 SETOLD01(SIZE(tp), ts); in realloc()
491 ts = SIZE(tp); in realfree()
494 CLRBIT0(SIZE(tp)); in realfree()
497 CLRBITS01(SIZE(tp)); in realfree()
501 if (SIZE(tp) < MINSIZE) { in realfree()
502 ASSERT(SIZE(tp) / WORDSIZE >= 1); in realfree()
503 ts = SIZE(tp) / WORDSIZE - 1; in realfree()
523 if (ISBIT0(SIZE(np))) in realfree()
528 SIZE(tp) += SIZE(np) + WORDSIZE; in realfree()
535 ASSERT(!ISBIT0(SIZE(np))); in realfree()
538 SIZE(np) += SIZE(tp) + WORDSIZE; in realfree()
551 size = SIZE(tp); in realfree()
555 if (SIZE(np) > size) { in realfree()
565 } else if (SIZE(np) < size) { in realfree()
625 SETBIT1(SIZE(tmp)); in realfree()
626 ASSERT(ISBIT0(SIZE(tmp))); in realfree()
663 n -= SIZE(tp); in morecore()
711 n += SIZE(tp) + 2 * WORDSIZE; in morecore()
726 SIZE(tp) = n - 2 * WORDSIZE; in morecore()
727 ASSERT((SIZE(tp) % ALIGN) == 0); in morecore()
731 SETBIT0(SIZE(NEXT(tp))); in morecore()
735 SETBIT0(SIZE(Bottom)); in morecore()
1179 blksize = SIZE(blk); in memalign()
1213 SIZE(aligned_blk) = blksize | BIT0; in memalign()
1215 SIZE(blk) = frag_size | BIT0 | ISBIT1(SIZE(blk)); in memalign()
1234 blksize = SIZE(aligned_blk); in memalign()
1235 SIZE(aligned_blk) = nbytes; in memalign()
1238 SETOLD01(SIZE(aligned_blk), blksize); in memalign()
1240 SIZE(blk) = frag_size | BIT0; in memalign()
1414 sz = size = SIZE(tp); in protect()