Home
last modified time | relevance | path

Searched refs:num_set_elements (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/util/
Du_idalloc.c42 return id / 32 < buf->num_set_elements && in util_idalloc_exists()
84 buf->num_set_elements = MAX2(buf->num_set_elements, i + 1); in util_idalloc_alloc()
93 buf->num_set_elements = MAX2(buf->num_set_elements, num_elements + 1); in util_idalloc_alloc()
146 buf->num_set_elements = MAX2(buf->num_set_elements, base + num_alloc); in util_idalloc_alloc_range()
167 if (buf->num_set_elements == idx + 1) { in util_idalloc_free()
168 while (buf->num_set_elements > 0 && !buf->data[buf->num_set_elements - 1]) in util_idalloc_free()
169 buf->num_set_elements--; in util_idalloc_free()
181 buf->num_set_elements = MAX2(buf->num_set_elements, idx + 1); in util_idalloc_reserve()
Du_idalloc.h50 unsigned num_set_elements; /* the last non-zero element of "data" + 1 */ member
73 for (uint32_t _i = 0, id, _count = (buf)->num_set_elements, \
81 for (uint32_t _i = 0, _bit, id, _count = (buf)->num_set_elements, \
150 for (uint32_t _i = 0, _bit, id, _count = (buf)->segment[_s].num_set_elements, \