Home
last modified time | relevance | path

Searched refs:newCap (Results 1 – 12 of 12) sorted by relevance

/external/lzma/CPP/Common/
DDynamicBuffer.h20 size_t newCap = _size + delta; in Grow() local
21 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()
32 _size = newCap; in Grow()
/external/icu/icu4c/source/common/
Duvectr64.cpp135 int32_t newCap = capacity * 2; in expandCapacity() local
136 if (newCap < minimumCapacity) { in expandCapacity()
137 newCap = minimumCapacity; in expandCapacity()
139 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()
140 newCap = maxCapacity; in expandCapacity()
142 if (newCap > (int32_t)(INT32_MAX / sizeof(int64_t))) { // integer overflow check in expandCapacity()
147 int64_t* newElems = (int64_t *)uprv_realloc(elements, sizeof(int64_t)*newCap); in expandCapacity()
154 capacity = newCap; in expandCapacity()
Duvectr32.cpp217 int32_t newCap = capacity * 2; in expandCapacity() local
218 if (newCap < minimumCapacity) { in expandCapacity()
219 newCap = minimumCapacity; in expandCapacity()
221 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()
222 newCap = maxCapacity; in expandCapacity()
224 if (newCap > (int32_t)(INT32_MAX / sizeof(int32_t))) { // integer overflow check in expandCapacity()
229 int32_t* newElems = (int32_t *)uprv_realloc(elements, sizeof(int32_t)*newCap); in expandCapacity()
236 capacity = newCap; in expandCapacity()
Duvector.cpp339 int32_t newCap = capacity * 2; in ensureCapacity() local
340 if (newCap < minimumCapacity) { in ensureCapacity()
341 newCap = minimumCapacity; in ensureCapacity()
343 if (newCap > (int32_t)(INT32_MAX / sizeof(UElement))) { // integer overflow check in ensureCapacity()
348 UElement* newElems = (UElement *)uprv_realloc(elements, sizeof(UElement)*newCap); in ensureCapacity()
355 capacity = newCap; in ensureCapacity()
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.Tools.pas573 newCap: Integer;
582 newCap := 4;
583 while newCap < ACapacity do
584 newCap := newCap shl 1;
585 Rehash(newCap);
591 newCap: Integer;
593 newCap := Length(FItems) * 2;
594 if newCap = 0 then
595 newCap := 4;
596 Rehash(newCap);
/external/icu/tools/srcgen/currysrc/libs/
Dorg.eclipse.osgi_3.10.100.v20150529-1857.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSE_.SF META-INF/ECLIPSE_ ...
/external/robolectric/v3/runtime/
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...