Home
last modified time | relevance | path

Searched refs:oldCapacity (Results 1 – 9 of 9) sorted by relevance

/external/qemu/android/utils/
Dintmap.c99 int oldCapacity = map->capacity; in aintMap_grow() local
110 if (oldCapacity < 256) in aintMap_grow()
111 newCapacity = oldCapacity*2; in aintMap_grow()
113 newCapacity = oldCapacity + (oldCapacity >> 2); in aintMap_grow()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DExpandedNameTable.java247 int oldCapacity = m_capacity; in rehash() local
250 int newCapacity = 2 * oldCapacity + 1; in rehash()
255 for (int i = oldCapacity-1; i >=0 ; i--) in rehash()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
DIntArrayList.java90 int oldCapacity = elements.length; in ensureCapacity() local
91 if (n>=oldCapacity) { in ensureCapacity()
/external/srec/portable/src/
Dphashtable.c277 unsigned int oldCapacity = table->args.capacity; in PHashTableRehash() local
278 unsigned int newCapacity = ((oldCapacity << 1) | 0x01); in PHashTableRehash()
293 for (i = oldCapacity; i < newCapacity; ++i) in PHashTableRehash()
298 for (i = 0; i < oldCapacity; i++) in PHashTableRehash()
/external/guava/guava/src/com/google/common/collect/
DMinMaxPriorityQueue.java929 int oldCapacity = queue.length; in calculateNewCapacity() local
930 int newCapacity = (oldCapacity < 64) in calculateNewCapacity()
931 ? (oldCapacity + 1) * 2 in calculateNewCapacity()
932 : IntMath.checkedMultiply(oldCapacity / 2, 3); in calculateNewCapacity()
DMapMakerInternalMap.java2606 int oldCapacity = oldTable.length(); in expand() local
2607 if (oldCapacity >= MAXIMUM_CAPACITY) { in expand()
2622 AtomicReferenceArray<ReferenceEntry<K, V>> newTable = newEntryArray(oldCapacity << 1); in expand()
2625 for (int oldIndex = 0; oldIndex < oldCapacity; ++oldIndex) { in expand()
/external/webkit/Source/JavaScriptCore/wtf/
DDeque.h422 size_t oldCapacity = m_buffer.capacity(); in expandCapacity() local
423 size_t newCapacity = max(static_cast<size_t>(16), oldCapacity + oldCapacity / 4 + 1); in expandCapacity()
430 size_t newStart = newCapacity - (oldCapacity - m_start); in expandCapacity()
431 … TypeOperations::move(oldBuffer + m_start, oldBuffer + oldCapacity, m_buffer.buffer() + newStart); in expandCapacity()
/external/icu4c/i18n/
Ducol.cpp275 int32_t oldCapacity; in increaseCEsCapacity() local
277 oldCapacity = data->extendCEsSize; in increaseCEsCapacity()
279 oldCapacity = LENGTHOF(data->CEs); in increaseCEsCapacity()
281 return reallocCEs(data, 2 * oldCapacity); in increaseCEsCapacity()
286 int32_t oldCapacity; in ensureCEsCapacity() local
288 oldCapacity = data->extendCEsSize; in ensureCEsCapacity()
290 oldCapacity = LENGTHOF(data->CEs); in ensureCEsCapacity()
292 if(minCapacity <= oldCapacity) { in ensureCEsCapacity()
295 oldCapacity *= 2; in ensureCEsCapacity()
296 return reallocCEs(data, minCapacity > oldCapacity ? minCapacity : oldCapacity); in ensureCEsCapacity()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2928 int oldCapacity = oldTable.length(); in expand() local
2929 if (oldCapacity >= MAXIMUM_CAPACITY) { in expand()
2944 AtomicReferenceArray<ReferenceEntry<K, V>> newTable = newEntryArray(oldCapacity << 1); in expand()
2947 for (int oldIndex = 0; oldIndex < oldCapacity; ++oldIndex) { in expand()