Searched refs:newCap (Results 1 – 5 of 5) sorted by relevance
20 size_t newCap = _size + delta; in Grow() local21 if (newCap < delta) in Grow()23 newCap = _size + size; in Grow()24 if (newCap < size) in Grow()28 T *newBuffer = new T[newCap]; in Grow()33 _size = newCap; in Grow()
137 int32_t newCap = capacity * 2; in expandCapacity() local138 if (newCap < minimumCapacity) { in expandCapacity()139 newCap = minimumCapacity; in expandCapacity()141 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()142 newCap = maxCapacity; in expandCapacity()144 if (newCap > (int32_t)(INT32_MAX / sizeof(int64_t))) { // integer overflow check in expandCapacity()149 int64_t* newElems = (int64_t *)uprv_realloc(elements, sizeof(int64_t)*newCap); in expandCapacity()156 capacity = newCap; in expandCapacity()
219 int32_t newCap = capacity * 2; in expandCapacity() local220 if (newCap < minimumCapacity) { in expandCapacity()221 newCap = minimumCapacity; in expandCapacity()223 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()224 newCap = maxCapacity; in expandCapacity()226 if (newCap > (int32_t)(INT32_MAX / sizeof(int32_t))) { // integer overflow check in expandCapacity()231 int32_t* newElems = (int32_t *)uprv_realloc(elements, sizeof(int32_t)*newCap); in expandCapacity()238 capacity = newCap; in expandCapacity()
341 int32_t newCap = capacity * 2; in ensureCapacity() local342 if (newCap < minimumCapacity) { in ensureCapacity()343 newCap = minimumCapacity; in ensureCapacity()345 if (newCap > (int32_t)(INT32_MAX / sizeof(UElement))) { // integer overflow check in ensureCapacity()350 UElement* newElems = (UElement *)uprv_realloc(elements, sizeof(UElement)*newCap); in ensureCapacity()357 capacity = newCap; in ensureCapacity()
573 newCap: Integer;582 newCap := 4;583 while newCap < ACapacity do584 newCap := newCap shl 1;585 Rehash(newCap);591 newCap: Integer;593 newCap := Length(FItems) * 2;594 if newCap = 0 then595 newCap := 4;596 Rehash(newCap);