Home
last modified time | relevance | path

Searched refs:bucket_count (Results 1 – 25 of 71) sorted by relevance

123

/third_party/boost/libs/multi_index/test/
Dtest_hash_ops.cpp29 float lf=(float)hc.size()/hc.bucket_count(); in check_load_factor()
47 BOOST_TEST(hc.bucket_count()<=hc.max_bucket_count()); in test_hash_ops()
59 for(hash_container::size_type s=2*hc.bucket_count();s--;){ in test_hash_ops()
70 BOOST_TEST(hc.bucket_count()>=1); in test_hash_ops()
75 BOOST_TEST(hc.bucket_count()>=1); in test_hash_ops()
78 hash_container::size_type bc=4*hc.bucket_count(); in test_hash_ops()
81 BOOST_TEST(hc.bucket_count()>=bc); in test_hash_ops()
84 bc=2*hc.bucket_count(); in test_hash_ops()
86 BOOST_TEST(hc.bucket_count()>=bc); in test_hash_ops()
92 BOOST_TEST(hc.bucket_count()>=1); in test_hash_ops()
[all …]
/third_party/boost/libs/unordered/test/unordered/
Drehash_tests.cpp25 return static_cast<double>(x.bucket_count()) >= in postcondition()
27 x.bucket_count() >= n; in postcondition()
115 BOOST_TEST(x.bucket_count() >= 10000); in reserve_empty_test1()
120 BOOST_TEST(x.bucket_count() >= 10000000); in reserve_empty_test1()
129 BOOST_TEST(x.bucket_count() >= 40000); in reserve_empty_test2()
134 BOOST_TEST(x.bucket_count() >= 40000000); in reserve_empty_test2()
159 std::size_t bucket_count = x.bucket_count(); in reserve_test1() local
161 BOOST_TEST(bucket_count == x.bucket_count()); in reserve_test1()
183 std::size_t bucket_count = x.bucket_count(); in reserve_test2() local
189 BOOST_TEST(bucket_count == x.bucket_count()); in reserve_test2()
Dbucket_tests.cpp38 BOOST_TEST(x.bucket_count() <= x.max_bucket_count()); in tests()
39 if (!(x.bucket_count() <= x.max_bucket_count())) { in tests()
40 BOOST_LIGHTWEIGHT_TEST_OSTREAM << x.bucket_count() in tests()
49 BOOST_TEST(bucket < x.bucket_count()); in tests()
50 if (bucket < x.bucket_count()) { in tests()
60 for (size_type i = 0; i < x.bucket_count(); ++i) { in tests()
Dinsert_tests.cpp46 typename X::size_type old_bucket_count = x.bucket_count(); in unique_insert_tests1()
59 BOOST_TEST(x.bucket_count() == old_bucket_count); in unique_insert_tests1()
75 typename X::size_type old_bucket_count = x.bucket_count(); in unique_insert_tests1()
89 BOOST_TEST(x.bucket_count() == old_bucket_count); in unique_insert_tests1()
110 typename X::size_type old_bucket_count = x.bucket_count(); in equivalent_insert_tests1()
122 BOOST_TEST(x.bucket_count() == old_bucket_count); in equivalent_insert_tests1()
137 typename X::size_type old_bucket_count = x.bucket_count(); in equivalent_insert_tests1()
150 BOOST_TEST(x.bucket_count() == old_bucket_count); in equivalent_insert_tests1()
174 typename X::size_type old_bucket_count = x.bucket_count(); in insert_tests2()
184 BOOST_TEST(x.bucket_count() == old_bucket_count); in insert_tests2()
[all …]
Dconstructor_tests.cpp50 BOOST_TEST(x.bucket_count() >= 100); in constructor_tests1()
63 BOOST_TEST(x.bucket_count() >= 2000); in constructor_tests1()
88 BOOST_TEST(x.bucket_count() >= 10000); in constructor_tests1()
102 BOOST_TEST(x.bucket_count() >= 10000); in constructor_tests1()
116 BOOST_TEST(x.bucket_count() >= 100); in constructor_tests1()
155 BOOST_TEST(x.bucket_count() >= 10000); in constructor_tests1()
193 BOOST_TEST(x.bucket_count() >= 10000); in constructor_tests2()
205 BOOST_TEST(x.bucket_count() >= 100); in constructor_tests2()
229 BOOST_TEST(x.bucket_count() >= 1000); in constructor_tests2()
310 BOOST_TEST(x.bucket_count() >= 50); in constructor_tests2()
[all …]
Dload_factor_tests.cpp54 old_bucket_count = x.bucket_count(); in insert_test()
58 BOOST_TEST(x.bucket_count() == old_bucket_count); in insert_test()
/third_party/boost/boost/serialization/
Dhash_collections_save_imp.hpp39 const collection_size_type bucket_count(s.bucket_count()); in save_hash_collection() local
54 ar << BOOST_SERIALIZATION_NVP(bucket_count); in save_hash_collection()
62 const unsigned int bc = bucket_count; in save_hash_collection()
74 ar << BOOST_SERIALIZATION_NVP(bucket_count); in save_hash_collection()
Dhash_collections_load_imp.hpp37 collection_size_type bucket_count; in load_hash_collection() local
45 ar >> BOOST_SERIALIZATION_NVP(bucket_count); in load_hash_collection()
57 bucket_count = bc; in load_hash_collection()
64 s.resize(bucket_count); in load_hash_collection()
Dunordered_collections_save_imp.hpp41 const collection_size_type bucket_count(s.bucket_count()); in save_unordered_collection() local
55 ar << BOOST_SERIALIZATION_NVP(bucket_count); in save_unordered_collection()
64 ar << BOOST_SERIALIZATION_NVP(bucket_count); in save_unordered_collection()
Dunordered_collections_load_imp.hpp49 collection_size_type bucket_count; in load_unordered_collection() local
56 ar >> BOOST_SERIALIZATION_NVP(bucket_count); in load_unordered_collection()
61 s.rehash(bucket_count); in load_unordered_collection()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
Dhistogram_macros.h31 #define ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
32 ANGLE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count)
43 #define ANGLE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument
45 bucket_count)
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dhistogram_macros.h31 #define ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
32 ANGLE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count)
43 #define ANGLE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument
45 bucket_count)
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/
Dmixed_bit_weight_quantizer.cc32 int bucket_count = shape[preferred_dim]; in MeasureQuantizationError() local
33 std::vector<float> norms2(bucket_count); in MeasureQuantizationError()
34 std::vector<float> dnorms2(bucket_count); in MeasureQuantizationError()
35 for (int i = 0; i < bucket_count; i++) { in MeasureQuantizationError()
68 int bucket = (i / bucket_volume) % bucket_count; in MeasureQuantizationError()
77 for (int i = 0; i < bucket_count; i++) { in MeasureQuantizationError()
/third_party/abseil-cpp/absl/container/internal/
Dunordered_set_constructor_test.h47 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
57 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
70 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
86 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
94 EXPECT_GE(cm.bucket_count(), 123); in TYPED_TEST_P()
125 EXPECT_GE(m.bucket_count(), 123);
146 EXPECT_GE(m.bucket_count(), 123);
197 EXPECT_GE(m.bucket_count(), 123);
214 EXPECT_GE(m.bucket_count(), 123);
238 EXPECT_GE(m.bucket_count(), 123);
[all …]
Dunordered_map_constructor_test.h45 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
55 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
68 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
84 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
115 EXPECT_GE(m.bucket_count(), 123);
136 EXPECT_GE(m.bucket_count(), 123);
187 EXPECT_GE(m.bucket_count(), 123);
204 EXPECT_GE(m.bucket_count(), 123);
228 EXPECT_GE(m.bucket_count(), 123);
340 EXPECT_GE(m.bucket_count(), 123);
[all …]
Draw_hash_set.h747 explicit raw_hash_set(size_t bucket_count, const hasher& hash = hasher(),
751 if (bucket_count) {
752 capacity_ = NormalizeCapacity(bucket_count);
758 raw_hash_set(size_t bucket_count, const hasher& hash,
760 : raw_hash_set(bucket_count, hash, key_equal(), alloc) {}
762 raw_hash_set(size_t bucket_count, const allocator_type& alloc)
763 : raw_hash_set(bucket_count, hasher(), key_equal(), alloc) {}
769 raw_hash_set(InputIter first, InputIter last, size_t bucket_count = 0,
772 : raw_hash_set(bucket_count, hash, eq, alloc) {
777 raw_hash_set(InputIter first, InputIter last, size_t bucket_count,
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dunordered_set_constructor_test.h47 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
57 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
70 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
86 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
94 EXPECT_GE(cm.bucket_count(), 123); in TYPED_TEST_P()
125 EXPECT_GE(m.bucket_count(), 123);
146 EXPECT_GE(m.bucket_count(), 123);
197 EXPECT_GE(m.bucket_count(), 123);
214 EXPECT_GE(m.bucket_count(), 123);
238 EXPECT_GE(m.bucket_count(), 123);
[all …]
Dunordered_map_constructor_test.h46 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
56 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
69 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
85 EXPECT_GE(m.bucket_count(), 123); in TYPED_TEST_P()
116 EXPECT_GE(m.bucket_count(), 123);
137 EXPECT_GE(m.bucket_count(), 123);
188 EXPECT_GE(m.bucket_count(), 123);
205 EXPECT_GE(m.bucket_count(), 123);
229 EXPECT_GE(m.bucket_count(), 123);
345 EXPECT_GE(m.bucket_count(), 123);
[all …]
Draw_hash_set.h511 size_t bucket_count) {
512 if (bucket_count != 0) {
513 return bucket_count;
861 explicit raw_hash_set(size_t bucket_count, const hasher& hash = hasher(),
866 if (bucket_count) {
867 capacity_ = NormalizeCapacity(bucket_count);
872 raw_hash_set(size_t bucket_count, const hasher& hash,
874 : raw_hash_set(bucket_count, hash, key_equal(), alloc) {}
876 raw_hash_set(size_t bucket_count, const allocator_type& alloc)
877 : raw_hash_set(bucket_count, hasher(), key_equal(), alloc) {}
[all …]
Dunordered_set_modifiers_test.h82 const size_t original_capacity = m.bucket_count(); in TYPED_TEST_P()
84 EXPECT_EQ(m.bucket_count(), original_capacity); in TYPED_TEST_P()
86 EXPECT_EQ(m.bucket_count(), original_capacity); in TYPED_TEST_P()
101 const size_t original_capacity = m.bucket_count(); in TYPED_TEST_P()
103 EXPECT_EQ(m.bucket_count(), original_capacity); in TYPED_TEST_P()
Dunordered_map_modifiers_test.h90 const size_t original_capacity = m.bucket_count(); in TYPED_TEST_P()
92 EXPECT_EQ(m.bucket_count(), original_capacity); in TYPED_TEST_P()
95 EXPECT_EQ(m.bucket_count(), original_capacity); in TYPED_TEST_P()
110 const size_t original_capacity = m.bucket_count(); in TYPED_TEST_P()
112 EXPECT_EQ(m.bucket_count(), original_capacity); in TYPED_TEST_P()
/third_party/boost/libs/unordered/test/exception/
Dinsert_exception_tests.cpp24 size_type bucket_count = x.bucket_count(); in rehash_prep() local
26 ceil((double)bucket_count * (double)x.max_load_factor()) - 1); in rehash_prep()
29 BOOST_TEST(bucket_count == x.bucket_count()); in rehash_prep()
/third_party/boost/boost/interprocess/indexes/
Diunordered_set_index.hpp263 destroy_buckets(this->alloc, index_type::bucket_pointer(), index_type::bucket_count()); in ~iunordered_set_index()
272 size_type old_n = this->bucket_count(); in reserve()
301 size_type cur_count = this->bucket_count(); in shrink_to_fit()
342 if(cur_size > this->bucket_count()){ in insert_commit()
/third_party/boost/libs/unordered/test/helpers/
Dinvariants.hpp102 static_cast<float>(x1.bucket_count()); in check_equivalent_keys()
111 for (typename X::size_type i = 0; i < x1.bucket_count(); ++i) { in check_equivalent_keys()
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/
Dshard_header.cc515 Status ShardHeader::GetAllSchemaID(std::set<uint64_t> &bucket_count) { in GetAllSchemaID() argument
519 CHECK_FAIL_RETURN_UNEXPECTED(bucket_count.find(schema_id) == bucket_count.end(), in GetAllSchemaID()
521 bucket_count.insert(schema_id); in GetAllSchemaID()
533 std::set<uint64_t> bucket_count; in AddIndexFields() local
534 RETURN_IF_NOT_OK(GetAllSchemaID(bucket_count)); in AddIndexFields()
547 CHECK_FAIL_RETURN_UNEXPECTED(bucket_count.find(schema_id) != bucket_count.end(), in AddIndexFields()

123