Home
last modified time | relevance | path

Searched refs:newCapacity (Results 1 – 13 of 13) sorted by relevance

/external/icu4c/tools/toolutil/
Dtoolutil.c154 int32_t newCapacity; in utm_hasCapacity() local
164 newCapacity=capacity; in utm_hasCapacity()
166 newCapacity=2*mem->capacity; in utm_hasCapacity()
168 newCapacity=mem->maxCapacity; in utm_hasCapacity()
172 mem->array=uprv_malloc(newCapacity*mem->size); in utm_hasCapacity()
177 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); in utm_hasCapacity()
/external/webkit/JavaScriptCore/runtime/
DUString.cpp481 size_t newCapacity = expandedSize(requiredLength, base->preCapacity); in expandCapacity() local
483 base->buf = reallocChars(base->buf, newCapacity); in expandCapacity()
488 base->capacity = newCapacity - base->preCapacity; in expandCapacity()
513 size_t newCapacity = expandedSize(capacity, base->preCapacity); in reserveCapacity() local
515 base->buf = reallocChars(base->buf, newCapacity); in reserveCapacity()
520 base->capacity = newCapacity - base->preCapacity; in reserveCapacity()
540 size_t newCapacity = expandedSize(requiredPreCap, base->capacity); in expandPreCapacity() local
541 int delta = newCapacity - base->capacity - base->preCapacity; in expandPreCapacity()
543 UChar* newBuf = allocChars(newCapacity); in expandPreCapacity()
552 base->preCapacity = newCapacity - base->capacity; in expandPreCapacity()
[all …]
/external/srec/portable/src/
DArrayListImpl.c81 size_t newCapacity = impl->capacity * 2; in ArrayList_Insert_Internal() local
82 void** temp = REALLOC(impl->contents, newCapacity * sizeof(void*)); in ArrayList_Insert_Internal()
86 impl->capacity = newCapacity; in ArrayList_Insert_Internal()
126 size_t newCapacity = impl->capacity / 2; in ArrayList_Remove_Internal() local
129 if ((temp = REALLOC(impl->contents, newCapacity * sizeof(void*))) == NULL) in ArrayList_Remove_Internal()
132 impl->capacity = newCapacity; in ArrayList_Remove_Internal()
Dphashtable.c278 unsigned int newCapacity = ((oldCapacity << 1) | 0x01); in PHashTableRehash() local
284 sizeof(PHashTableEntry *) * newCapacity); in PHashTableRehash()
290 table->args.capacity = newCapacity; in PHashTableRehash()
291 table->threshold = (unsigned int)(newCapacity * table->args.maxLoadFactor); in PHashTableRehash()
293 for (i = oldCapacity; i < newCapacity; ++i) in PHashTableRehash()
302 idx = entry->hashCode % newCapacity; in PHashTableRehash()
/external/webkit/JavaScriptCore/wtf/
DVector.h273 void allocateBuffer(size_t newCapacity)
275 m_capacity = newCapacity;
276 if (newCapacity > std::numeric_limits<size_t>::max() / sizeof(T))
278 m_buffer = static_cast<T*>(fastMalloc(newCapacity * sizeof(T)));
390 void allocateBuffer(size_t newCapacity)
392 if (newCapacity > inlineCapacity)
393 Base::allocateBuffer(newCapacity);
511 void reserveCapacity(size_t newCapacity);
513 void shrinkCapacity(size_t newCapacity);
756 void Vector<T, inlineCapacity>::reserveCapacity(size_t newCapacity)
[all …]
DDeque.h415 size_t newCapacity = max(static_cast<size_t>(16), oldCapacity + oldCapacity / 4 + 1); in expandCapacity() local
417 m_buffer.allocateBuffer(newCapacity); in expandCapacity()
422 size_t newStart = newCapacity - (oldCapacity - m_start); in expandCapacity()
/external/webkit/WebCore/xml/
DXPathNodeSet.h47 void reserveCapacity(size_t newCapacity) { m_nodes.reserveCapacity(newCapacity); } in reserveCapacity() argument
/external/icu4c/common/
Dunistr.cpp1290 UnicodeString::cloneArrayIfNeeded(int32_t newCapacity, in cloneArrayIfNeeded() argument
1297 if(newCapacity == -1) { in cloneArrayIfNeeded()
1298 newCapacity = fCapacity; in cloneArrayIfNeeded()
1318 newCapacity > fCapacity in cloneArrayIfNeeded()
1326 growCapacity = newCapacity; in cloneArrayIfNeeded()
1327 } else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) { in cloneArrayIfNeeded()
1333 newCapacity < growCapacity && allocate(newCapacity) in cloneArrayIfNeeded()
Dudata.c364 int32_t newCapacity = newLen * 2; in TinyString_append() local
365 char *newBuf = (char *)uprv_malloc(newCapacity+1); in TinyString_append()
372 This->fCapacity = newCapacity; in TinyString_append()
385 int32_t newCapacity = newLen * 2; in TinyString_appendn() local
386 char *newBuf = (char *)uprv_malloc(newCapacity+1); in TinyString_appendn()
393 This->fCapacity = newCapacity; in TinyString_appendn()
/external/icu4c/layoutex/
DRunArrays.cpp55 void RunArray::grow(le_int32 newCapacity) in grow() argument
57 fLimits = (le_int32 *) LE_GROW_ARRAY(fLimits, newCapacity); in grow()
/external/icu4c/i18n/
Dzstrfmt.cpp254 int32_t newCapacity = fNodesCapacity * 2; in growNodes() local
255 if (newCapacity > 0xffff) { in growNodes()
256 newCapacity = 0xffff; in growNodes()
258 CharacterNode *newNodes = (CharacterNode *)uprv_malloc(newCapacity * sizeof(CharacterNode)); in growNodes()
265 fNodesCapacity = newCapacity; in growNodes()
/external/icu4c/common/unicode/
Dunistr.h3160 UBool cloneArrayIfNeeded(int32_t newCapacity = -1,
/external/webkit/JavaScriptCore/
DChangeLog-2008-08-1022582 (WTF::::reserveCapacity): No need to grow the buffer if newCapacity is