Searched refs:newCapacity (Results 1 – 13 of 13) sorted by relevance
/external/icu4c/tools/toolutil/ |
D | toolutil.c | 154 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/ |
D | UString.cpp | 481 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/ |
D | ArrayListImpl.c | 81 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()
|
D | phashtable.c | 278 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/ |
D | Vector.h | 273 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 …]
|
D | Deque.h | 415 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/ |
D | XPathNodeSet.h | 47 void reserveCapacity(size_t newCapacity) { m_nodes.reserveCapacity(newCapacity); } in reserveCapacity() argument
|
/external/icu4c/common/ |
D | unistr.cpp | 1290 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()
|
D | udata.c | 364 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/ |
D | RunArrays.cpp | 55 void RunArray::grow(le_int32 newCapacity) in grow() argument 57 fLimits = (le_int32 *) LE_GROW_ARRAY(fLimits, newCapacity); in grow()
|
/external/icu4c/i18n/ |
D | zstrfmt.cpp | 254 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/ |
D | unistr.h | 3160 UBool cloneArrayIfNeeded(int32_t newCapacity = -1,
|
/external/webkit/JavaScriptCore/ |
D | ChangeLog-2008-08-10 | 22582 (WTF::::reserveCapacity): No need to grow the buffer if newCapacity is
|