Searched refs:oldCapacity (Results 1 – 9 of 9) sorted by relevance
99 int oldCapacity = map->capacity; in aintMap_grow() local110 if (oldCapacity < 256) in aintMap_grow()111 newCapacity = oldCapacity*2; in aintMap_grow()113 newCapacity = oldCapacity + (oldCapacity >> 2); in aintMap_grow()
247 int oldCapacity = m_capacity; in rehash() local250 int newCapacity = 2 * oldCapacity + 1; in rehash()255 for (int i = oldCapacity-1; i >=0 ; i--) in rehash()
90 int oldCapacity = elements.length; in ensureCapacity() local91 if (n>=oldCapacity) { in ensureCapacity()
277 unsigned int oldCapacity = table->args.capacity; in PHashTableRehash() local278 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()
929 int oldCapacity = queue.length; in calculateNewCapacity() local930 int newCapacity = (oldCapacity < 64) in calculateNewCapacity()931 ? (oldCapacity + 1) * 2 in calculateNewCapacity()932 : IntMath.checkedMultiply(oldCapacity / 2, 3); in calculateNewCapacity()
2606 int oldCapacity = oldTable.length(); in expand() local2607 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()
422 size_t oldCapacity = m_buffer.capacity(); in expandCapacity() local423 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()
275 int32_t oldCapacity; in increaseCEsCapacity() local277 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() local288 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()
2928 int oldCapacity = oldTable.length(); in expand() local2929 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()