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

/xsrc/external/mit/MesaLib/dist/src/util/
H A Du_idalloc.c105 unsigned num_alloc = DIV_ROUND_UP(num, 32); local in function:util_idalloc_alloc_range
112 i < num_elements && i - base < num_alloc && !buf->data[i]; i++);
114 if (i - base == num_alloc)
125 util_idalloc_resize(buf, num_elements * 2 + num_alloc);
129 for (unsigned i = base; i < base + num_alloc - (num % 32 != 0); i++)
132 buf->data[base + num_alloc - 1] |= BITFIELD_MASK(num % 32);

Completed in 2 milliseconds