Home
last modified time | relevance | path

Searched refs:NumBuckets (Results 1 – 2 of 2) sorted by relevance

/art/libartbase/base/
Dhash_set.h229 AllocateStorage(other.NumBuckets()); in HashSet()
339 return iterator(this, NumBuckets()); in end()
344 return const_iterator(this, NumBuckets()); in end()
388 unwrapped_next_index += NumBuckets(); in erase()
393 unwrapped_next_ideal_index += NumBuckets(); in erase()
499 if (num_buckets > NumBuckets()) { in reserve()
508 for (size_t i = 0; i < NumBuckets(); ++i) { in TotalProbeDistance()
513 total += i + NumBuckets() - ideal_location; in TotalProbeDistance()
524 return static_cast<double>(size()) / static_cast<double>(NumBuckets()); in CalculateLoadFactor()
563 elements_until_expand_ = NumBuckets() * max_load_factor_; in SetLoadFactor()
[all …]
Dhash_set_test.cc343 const size_t buckets_before = hash_set.NumBuckets(); in TEST_F()
351 CHECK_EQ(hash_set.NumBuckets(), buckets_before); in TEST_F()