Searched refs:newCap (Results 1 – 5 of 5) sorted by relevance
120 int32_t newCap = capacity * 2; in expandCapacity() local121 if (newCap < minimumCapacity) { in expandCapacity()122 newCap = minimumCapacity; in expandCapacity()124 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()125 newCap = maxCapacity; in expandCapacity()127 int64_t* newElems = (int64_t *)uprv_realloc(elements, sizeof(int64_t)*newCap); in expandCapacity()134 capacity = newCap; in expandCapacity()
202 int32_t newCap = capacity * 2; in expandCapacity() local203 if (newCap < minimumCapacity) { in expandCapacity()204 newCap = minimumCapacity; in expandCapacity()206 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()207 newCap = maxCapacity; in expandCapacity()209 int32_t* newElems = (int32_t *)uprv_realloc(elements, sizeof(int32_t)*newCap); in expandCapacity()216 capacity = newCap; in expandCapacity()
330 int32_t newCap = capacity * 2; in ensureCapacity() local331 if (newCap < minimumCapacity) { in ensureCapacity()332 newCap = minimumCapacity; in ensureCapacity()334 UHashTok* newElems = (UHashTok *)uprv_realloc(elements, sizeof(UHashTok)*newCap); in ensureCapacity()341 capacity = newCap; in ensureCapacity()