Searched refs:nunits (Results 1 - 2 of 2) sorted by relevance

/barrelfish-2018-10-04/lib/barrelfish/
H A Dheap.c56 unsigned nunits; local
57 nunits = (nbytes + sizeof(union heap_header) - 1)
64 if (p->s.size >= nunits) { /* big enough */
65 if (p->s.size == nunits) { /* exactly */
68 p->s.size -= nunits;
70 p->s.size = nunits;
80 heap->morecore_func(heap, nunits)) == NULL) {
/barrelfish-2018-10-04/lib/libc/sys/barrelfish/
H A Doldmalloc.c47 unsigned nunits; local
48 nunits = (nbytes + sizeof(Header) - 1) / sizeof(Header) + 1;
56 if (p->s.size >= nunits) { /* big enough */
57 if (p->s.size == nunits) /* exactly */
60 p->s.size -= nunits;
62 p->s.size = nunits;
77 __malloc_instrumented_allocated += nunits;
90 if ((p = (Header *) morecore(nunits)) == NULL) {

Completed in 36 milliseconds