Home
last modified time | relevance | path

Searched refs:newCapacity (Results 1 - 25 of 81) sorted by relevance

1234

/third_party/icu/icu4c/source/common/
H A Dcmemory.h252 * @param newCapacity must be >0
255 inline T *allocateInsteadAndReset(int32_t newCapacity=1);
261 * @param newCapacity must be >0
267 inline T *allocateInsteadAndCopy(int32_t newCapacity=1, int32_t length=0);
278 inline T *LocalMemory<T>::allocateInsteadAndReset(int32_t newCapacity) { in allocateInsteadAndReset() argument
279 if(newCapacity>0) { in allocateInsteadAndReset()
280 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset()
282 uprv_memset(p, 0, newCapacity*sizeof(T)); in allocateInsteadAndReset()
294 inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) { in allocateInsteadAndCopy() argument
295 if(newCapacity> in allocateInsteadAndCopy()
350 MaybeStackArray(int32_t newCapacity, UErrorCode status) MaybeStackArray() argument
505 resize(int32_t newCapacity, int32_t length) resize() argument
676 resize(int32_t newCapacity, int32_t length) resize() argument
[all...]
H A Dbytestriebuilder.cpp158 int32_t newCapacity; in add() local
160 newCapacity=1024; in add()
162 newCapacity=4*elementsCapacity; in add()
164 BytesTrieElement *newElements=new BytesTrieElement[newCapacity]; in add()
174 elementsCapacity=newCapacity; in add()
381 int32_t newCapacity=bytesCapacity; in ensureCapacity() local
383 newCapacity*=2; in ensureCapacity()
384 } while(newCapacity<=length); in ensureCapacity()
385 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); in ensureCapacity()
393 uprv_memcpy(newBytes+(newCapacity in ensureCapacity()
[all...]
H A Ducharstriebuilder.cpp108 int32_t newCapacity; in add() local
110 newCapacity=1024; in add()
112 newCapacity=4*elementsCapacity; in add()
114 UCharsTrieElement *newElements=new UCharsTrieElement[newCapacity]; in add()
124 elementsCapacity=newCapacity; in add()
328 int32_t newCapacity=ucharsCapacity; in ensureCapacity() local
330 newCapacity*=2; in ensureCapacity()
331 } while(newCapacity<=length); in ensureCapacity()
332 UChar *newUChars=static_cast<UChar *>(uprv_malloc(newCapacity*2)); in ensureCapacity()
340 u_memcpy(newUChars+(newCapacity in ensureCapacity()
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dcmemory.h252 * @param newCapacity must be >0
255 inline T *allocateInsteadAndReset(int32_t newCapacity=1);
261 * @param newCapacity must be >0
267 inline T *allocateInsteadAndCopy(int32_t newCapacity=1, int32_t length=0);
278 inline T *LocalMemory<T>::allocateInsteadAndReset(int32_t newCapacity) { in allocateInsteadAndReset() argument
279 if(newCapacity>0) { in allocateInsteadAndReset()
280 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset()
282 uprv_memset(p, 0, newCapacity*sizeof(T)); in allocateInsteadAndReset()
294 inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) { in allocateInsteadAndCopy() argument
295 if(newCapacity> in allocateInsteadAndCopy()
350 MaybeStackArray(int32_t newCapacity, UErrorCode status) MaybeStackArray() argument
505 resize(int32_t newCapacity, int32_t length) resize() argument
676 resize(int32_t newCapacity, int32_t length) resize() argument
[all...]
H A Dbytestriebuilder.cpp158 int32_t newCapacity; in add() local
160 newCapacity=1024; in add()
162 newCapacity=4*elementsCapacity; in add()
164 BytesTrieElement *newElements=new BytesTrieElement[newCapacity]; in add()
174 elementsCapacity=newCapacity; in add()
381 int32_t newCapacity=bytesCapacity; in ensureCapacity() local
383 newCapacity*=2; in ensureCapacity()
384 } while(newCapacity<=length); in ensureCapacity()
385 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); in ensureCapacity()
393 uprv_memcpy(newBytes+(newCapacity in ensureCapacity()
[all...]
H A Ducharstriebuilder.cpp108 int32_t newCapacity; in add() local
110 newCapacity=1024; in add()
112 newCapacity=4*elementsCapacity; in add()
114 UCharsTrieElement *newElements=new UCharsTrieElement[newCapacity]; in add()
124 elementsCapacity=newCapacity; in add()
328 int32_t newCapacity=ucharsCapacity; in ensureCapacity() local
330 newCapacity*=2; in ensureCapacity()
331 } while(newCapacity<=length); in ensureCapacity()
332 char16_t *newUChars=static_cast<char16_t *>(uprv_malloc(newCapacity*2)); in ensureCapacity()
340 u_memcpy(newUChars+(newCapacity in ensureCapacity()
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dcmemory.h252 * @param newCapacity must be >0
255 inline T *allocateInsteadAndReset(int32_t newCapacity=1);
261 * @param newCapacity must be >0
267 inline T *allocateInsteadAndCopy(int32_t newCapacity=1, int32_t length=0);
278 inline T *LocalMemory<T>::allocateInsteadAndReset(int32_t newCapacity) { in allocateInsteadAndReset() argument
279 if(newCapacity>0) { in allocateInsteadAndReset()
280 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset()
282 uprv_memset(p, 0, newCapacity*sizeof(T)); in allocateInsteadAndReset()
294 inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) { in allocateInsteadAndCopy() argument
295 if(newCapacity> in allocateInsteadAndCopy()
350 MaybeStackArray(int32_t newCapacity, UErrorCode status) MaybeStackArray() argument
505 resize(int32_t newCapacity, int32_t length) resize() argument
676 resize(int32_t newCapacity, int32_t length) resize() argument
[all...]
H A Dbytestriebuilder.cpp158 int32_t newCapacity; in add() local
160 newCapacity=1024; in add()
162 newCapacity=4*elementsCapacity; in add()
164 BytesTrieElement *newElements=new BytesTrieElement[newCapacity]; in add()
174 elementsCapacity=newCapacity; in add()
381 int32_t newCapacity=bytesCapacity; in ensureCapacity() local
383 newCapacity*=2; in ensureCapacity()
384 } while(newCapacity<=length); in ensureCapacity()
385 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); in ensureCapacity()
393 uprv_memcpy(newBytes+(newCapacity in ensureCapacity()
[all...]
H A Ducharstriebuilder.cpp108 int32_t newCapacity; in add() local
110 newCapacity=1024; in add()
112 newCapacity=4*elementsCapacity; in add()
114 UCharsTrieElement *newElements=new UCharsTrieElement[newCapacity]; in add()
124 elementsCapacity=newCapacity; in add()
328 int32_t newCapacity=ucharsCapacity; in ensureCapacity() local
330 newCapacity*=2; in ensureCapacity()
331 } while(newCapacity<=length); in ensureCapacity()
332 UChar *newUChars=static_cast<UChar *>(uprv_malloc(newCapacity*2)); in ensureCapacity()
340 u_memcpy(newUChars+(newCapacity in ensureCapacity()
[all...]
/third_party/lzma/CPP/Common/
H A DMyVector.h24 void ReAllocForNewCapacity(const unsigned newCapacity) in ReAllocForNewCapacity() argument
27 Z7_ARRAY_NEW(p, T, newCapacity) in ReAllocForNewCapacity()
28 // p = new T[newCapacity]; in ReAllocForNewCapacity()
33 _capacity = newCapacity; in ReAllocForNewCapacity()
79 void Reserve(unsigned newCapacity) in Reserve() argument
81 if (newCapacity > _capacity) in Reserve()
83 if (newCapacity > k_VectorSizeMax) in Reserve()
85 ReAllocForNewCapacity(newCapacity); in Reserve()
95 void ClearAndReserve(unsigned newCapacity) in ClearAndReserve() argument
98 if (newCapacity > _capacit in ClearAndReserve()
465 ClearAndReserve(unsigned newCapacity) ClearAndReserve() argument
[all...]
/third_party/node/deps/icu-small/source/tools/toolutil/
H A Dtoolutil.cpp321 int32_t newCapacity; in utm_hasCapacity() local
331 newCapacity=capacity; in utm_hasCapacity()
333 newCapacity=2*mem->capacity; in utm_hasCapacity()
335 newCapacity=mem->maxCapacity; in utm_hasCapacity()
339 mem->array=uprv_malloc(newCapacity*mem->size); in utm_hasCapacity()
344 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); in utm_hasCapacity()
351 mem->capacity=newCapacity; in utm_hasCapacity()
/third_party/icu/icu4c/source/tools/toolutil/
H A Dtoolutil.cpp321 int32_t newCapacity; in utm_hasCapacity() local
331 newCapacity=capacity; in utm_hasCapacity()
333 newCapacity=2*mem->capacity; in utm_hasCapacity()
335 newCapacity=mem->maxCapacity; in utm_hasCapacity()
339 mem->array=uprv_malloc(newCapacity*mem->size); in utm_hasCapacity()
344 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); in utm_hasCapacity()
351 mem->capacity=newCapacity; in utm_hasCapacity()
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
H A Dtoolutil.cpp296 int32_t newCapacity; in utm_hasCapacity() local
306 newCapacity=capacity; in utm_hasCapacity()
308 newCapacity=2*mem->capacity; in utm_hasCapacity()
310 newCapacity=mem->maxCapacity; in utm_hasCapacity()
314 mem->array=uprv_malloc(newCapacity*mem->size); in utm_hasCapacity()
319 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); in utm_hasCapacity()
326 mem->capacity=newCapacity; in utm_hasCapacity()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DBytesTrieBuilder.java166 int newCapacity=bytes.length; in ensureCapacity()
168 newCapacity*=2; in ensureCapacity()
169 } while(newCapacity<=length); in ensureCapacity()
170 byte[] newBytes=new byte[newCapacity]; in ensureCapacity()
H A DCharsTrieBuilder.java141 int newCapacity=chars.length; in ensureCapacity()
143 newCapacity*=2; in ensureCapacity()
144 } while(newCapacity<=length); in ensureCapacity()
145 char[] newChars=new char[newCapacity]; in ensureCapacity()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DBytesTrieBuilder.java159 int newCapacity=bytes.length; in ensureCapacity()
161 newCapacity*=2; in ensureCapacity()
162 } while(newCapacity<=length); in ensureCapacity()
163 byte[] newBytes=new byte[newCapacity]; in ensureCapacity()
H A DCharsTrieBuilder.java137 int newCapacity=chars.length; in ensureCapacity()
139 newCapacity*=2; in ensureCapacity()
140 } while(newCapacity<=length); in ensureCapacity()
141 char[] newChars=new char[newCapacity]; in ensureCapacity()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DUVector32.java40 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; in ensureAppendCapacity()
41 int[] newBuffer = new int[newCapacity]; in ensureAppendCapacity()
H A DUVector64.java40 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; in ensureAppendCapacity()
41 long[] newBuffer = new long[newCapacity]; in ensureAppendCapacity()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
H A DUVector64.java44 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; in ensureAppendCapacity()
45 long[] newBuffer = new long[newCapacity]; in ensureAppendCapacity()
H A DUVector32.java44 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; in ensureAppendCapacity()
45 int[] newBuffer = new int[newCapacity]; in ensureAppendCapacity()
/third_party/icu/icu4c/source/i18n/
H A Dsortkey.cpp101 uint8_t *CollationKey::reallocate(int32_t newCapacity, int32_t length) { in reallocate() argument
102 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate()
109 fUnion.fFields.fCapacity = newCapacity; in reallocate()
/third_party/node/deps/icu-small/source/i18n/
H A Dsortkey.cpp101 uint8_t *CollationKey::reallocate(int32_t newCapacity, int32_t length) { in reallocate() argument
102 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate()
109 fUnion.fFields.fCapacity = newCapacity; in reallocate()
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dsortkey.cpp101 uint8_t *CollationKey::reallocate(int32_t newCapacity, int32_t length) { in reallocate() argument
102 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate()
109 fUnion.fFields.fCapacity = newCapacity; in reallocate()
/third_party/vk-gl-cts/framework/delibs/depool/
H A DdePoolArray.c72 int newCapacity = deAlign32(size, 1 << DE_ARRAY_ELEMENTS_PER_PAGE_LOG2); in dePoolArray_reserve() local
73 int reqPageTableCapacity = newCapacity >> DE_ARRAY_ELEMENTS_PER_PAGE_LOG2; in dePoolArray_reserve()
127 DE_ASSERT(arr->capacity >= newCapacity); in dePoolArray_reserve()

Completed in 15 milliseconds

1234