Home | History | Annotate | Download | only in utils

Lines Matching refs:loadFactor

28         size_t minimumInitialCapacity, float loadFactor) :
30 mLoadFactor(loadFactor), mSize(0),
198 void BasicHashtableImpl::rehash(size_t minimumCapacity, float loadFactor) {
203 determineCapacity(minimumCapacity, loadFactor, &newBucketCount, &newCapacity);
238 mLoadFactor = loadFactor;
320 void BasicHashtableImpl::determineCapacity(size_t minimumCapacity, float loadFactor,
322 LOG_ALWAYS_FATAL_IF(loadFactor <= 0.0f || loadFactor > 1.0f,
323 "Invalid load factor %0.3f. Must be in the range (0, 1].", loadFactor);
325 size_t count = ceilf(minimumCapacity / loadFactor) + 1;
333 uint32_t(minimumCapacity), loadFactor);
335 *outCapacity = ceilf((count - 1) * loadFactor);