Home | History | Annotate | Download | only in libutils

Lines Matching refs:loadFactor

28         size_t minimumInitialCapacity, float loadFactor) :
30 mLoadFactor(loadFactor), mSize(0),
202 void BasicHashtableImpl::rehash(size_t minimumCapacity, float loadFactor) {
207 determineCapacity(minimumCapacity, loadFactor, &newBucketCount, &newCapacity);
242 mLoadFactor = loadFactor;
324 void BasicHashtableImpl::determineCapacity(size_t minimumCapacity, float loadFactor,
326 LOG_ALWAYS_FATAL_IF(loadFactor <= 0.0f || loadFactor > 1.0f,
327 "Invalid load factor %0.3f. Must be in the range (0, 1].", loadFactor);
329 size_t count = ceilf(minimumCapacity / loadFactor) + 1;
337 uint32_t(minimumCapacity), loadFactor);
339 *outCapacity = ceilf((count - 1) * loadFactor);