Searched refs:nitems_alloc (Results 1 – 1 of 1) sorted by relevance
449 growalloc(void *ptr, size_t itemsize, int nitems, int *nitems_alloc) in growalloc() argument451 if (nitems < *nitems_alloc) in growalloc()455 if ((amax - 1) / 3 * 2 < *nitems_alloc) in growalloc()457 *nitems_alloc = *nitems_alloc + (*nitems_alloc >> 1) + 1; in growalloc()458 return erealloc(ptr, size_product(*nitems_alloc, itemsize)); in growalloc()