Searched refs:nitems_alloc (Results 1 – 1 of 1) sorted by relevance
490 growalloc(void *ptr, size_t itemsize, ptrdiff_t nitems, ptrdiff_t *nitems_alloc) in growalloc() argument492 if (nitems < *nitems_alloc) in growalloc()497 if ((amax - 1) / 3 * 2 < *nitems_alloc) in growalloc()499 *nitems_alloc += (*nitems_alloc >> 1) + 1; in growalloc()500 return erealloc(ptr, size_product(*nitems_alloc, itemsize)); in growalloc()