Home
last modified time | relevance | path

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

12345678910>>...17

/external/webrtc/rtc_base/
Drandom_unittest.cc39 void UniformBucketTest(T bucket_count, int samples, Random* prng) { in UniformBucketTest() argument
40 std::vector<int> buckets(bucket_count, 0); in UniformBucketTest()
46 static_cast<T>(total_values % static_cast<uint64_t>(bucket_count)); in UniformBucketTest()
58 buckets[fdiv_remainder(sample, bucket_count)]++; in UniformBucketTest()
61 for (T i = 0; i < bucket_count; i++) { in UniformBucketTest()
63 EXPECT_NEAR(buckets[i], samples / bucket_count, in UniformBucketTest()
64 3 * sqrt(samples / bucket_count)); in UniformBucketTest()
113 void BucketTestSignedInterval(unsigned int bucket_count, in BucketTestSignedInterval() argument
119 std::vector<unsigned int> buckets(bucket_count, 0); in BucketTestSignedInterval()
122 ASSERT_GE(bucket_count, 2u); in BucketTestSignedInterval()
[all …]
/external/libchrome/base/metrics/
Dhistogram.cc47 uint32_t* bucket_count, in ReadHistogramArguments() argument
53 !iter->ReadUInt32(bucket_count) || in ReadHistogramArguments()
64 INT_MAX / sizeof(HistogramBase::Count) <= *bucket_count || in ReadHistogramArguments()
65 *bucket_count < 2) { in ReadHistogramArguments()
103 uint32_t bucket_count, in Factory() argument
105 : Factory(name, HISTOGRAM, minimum, maximum, bucket_count, flags) {} in Factory()
117 uint32_t bucket_count, in Factory() argument
123 bucket_count_(bucket_count), in Factory()
179 bucket_count_ = static_cast<uint32_t>(registered_ranges->bucket_count()); in Build()
252 uint32_t bucket_count, in FactoryGet() argument
[all …]
Dhistogram_macros.h187 #define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument
189 name, sample, min, max, bucket_count, \
233 #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
237 name, min, max, bucket_count, \
253 bucket_count) \ argument
257 name, min, max, bucket_count, \
315 bucket_count) \ argument
317 name, sample, min, max, bucket_count, \
Dhistogram.h122 uint32_t bucket_count,
127 uint32_t bucket_count,
132 uint32_t bucket_count,
141 uint32_t bucket_count,
146 uint32_t bucket_count,
151 uint32_t bucket_count,
193 virtual uint32_t bucket_count() const;
205 uint32_t* bucket_count);
351 uint32_t bucket_count,
356 uint32_t bucket_count,
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dreserve.pass.cpp40 size_t buckets = c.bucket_count(); in reserve_invariant()
44 assert(buckets == c.bucket_count()); in reserve_invariant()
65 assert(c.bucket_count() >= 7); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
71 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
74 assert(c.bucket_count() >= 16); in main()
93 assert(c.bucket_count() >= 7); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
102 assert(c.bucket_count() >= 16); in main()
Drehash.pass.cpp27 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
56 assert(c.bucket_count() >= 7); in main()
59 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
64 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
68 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
87 assert(c.bucket_count() >= 7); in main()
90 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/external/llvm-project/libcxx/test/std/containers/unord/unord.multiset/
Dreserve.pass.cpp39 size_t buckets = c.bucket_count(); in reserve_invariant()
43 assert(buckets == c.bucket_count()); in reserve_invariant()
64 assert(c.bucket_count() >= 7); in main()
66 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
70 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
73 assert(c.bucket_count() >= 16); in main()
92 assert(c.bucket_count() >= 7); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
98 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
101 assert(c.bucket_count() >= 16); in main()
Drehash.pass.cpp26 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
55 assert(c.bucket_count() >= 7); in main()
58 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
63 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
86 assert(c.bucket_count() >= 7); in main()
89 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
98 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/external/libcxx/test/std/containers/unord/unord.set/
Dreserve.pass.cpp40 size_t buckets = c.bucket_count(); in reserve_invariant()
44 assert(buckets == c.bucket_count()); in reserve_invariant()
65 assert(c.bucket_count() >= 5); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
71 assert(c.bucket_count() >= 2); in main()
74 assert(c.bucket_count() >= 16); in main()
93 assert(c.bucket_count() >= 5); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
99 assert(c.bucket_count() >= 2); in main()
102 assert(c.bucket_count() >= 16); in main()
Drehash.pass.cpp27 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
56 assert(c.bucket_count() >= 5); in main()
59 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
64 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
68 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
87 assert(c.bucket_count() >= 5); in main()
90 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/external/llvm-project/libcxx/test/std/containers/unord/unord.set/
Drehash.pass.cpp26 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
55 assert(c.bucket_count() >= 5); in main()
58 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
63 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
86 assert(c.bucket_count() >= 5); in main()
89 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
98 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
Dreserve.pass.cpp39 size_t buckets = c.bucket_count(); in reserve_invariant()
43 assert(buckets == c.bucket_count()); in reserve_invariant()
64 assert(c.bucket_count() >= 5); in main()
66 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
70 assert(c.bucket_count() >= 2); in main()
73 assert(c.bucket_count() >= 16); in main()
92 assert(c.bucket_count() >= 5); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
98 assert(c.bucket_count() >= 2); in main()
101 assert(c.bucket_count() >= 16); in main()
/external/libcxx/test/std/containers/unord/unord.map/
Dreserve.pass.cpp41 size_t buckets = c.bucket_count(); in reserve_invariant()
45 assert(buckets == c.bucket_count()); in reserve_invariant()
66 assert(c.bucket_count() >= 5); in main()
68 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
72 assert(c.bucket_count() >= 2); in main()
75 assert(c.bucket_count() >= 16); in main()
94 assert(c.bucket_count() >= 5); in main()
96 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
100 assert(c.bucket_count() >= 2); in main()
103 assert(c.bucket_count() >= 16); in main()
Drehash.pass.cpp28 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
57 assert(c.bucket_count() >= 5); in main()
60 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
65 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
69 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
88 assert(c.bucket_count() >= 5); in main()
91 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
96 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
100 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/external/llvm-project/libcxx/test/std/containers/unord/unord.map/
Drehash.pass.cpp27 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
56 assert(c.bucket_count() >= 5); in main()
59 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
64 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
68 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
87 assert(c.bucket_count() >= 5); in main()
90 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
Dreserve.pass.cpp40 size_t buckets = c.bucket_count(); in reserve_invariant()
44 assert(buckets == c.bucket_count()); in reserve_invariant()
65 assert(c.bucket_count() >= 5); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
71 assert(c.bucket_count() >= 2); in main()
74 assert(c.bucket_count() >= 16); in main()
93 assert(c.bucket_count() >= 5); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
99 assert(c.bucket_count() >= 2); in main()
102 assert(c.bucket_count() >= 16); in main()
/external/llvm-project/lldb/include/lldb/Core/
DMappedHash.h52 uint32_t bucket_count; // The number of buckets in this hash table member
61 bucket_count(0), hashes_count(0), header_data_len(sizeof(T)), in Header()
68 sizeof(bucket_count) + sizeof(hashes_count) + in GetByteSize()
82 s.Printf("header.bucket_count = 0x%8.8x %u\n", bucket_count, in Dump()
83 bucket_count); in Dump()
94 sizeof(bucket_count) + sizeof(hashes_count) + in Read()
124 bucket_count = data.GetU32(&offset); in Read()
169 &offset, m_header.bucket_count * sizeof(uint32_t)); in MemoryTable()
182 m_header.bucket_count > 0; in IsValid()
187 if (m_hash_indexes && bucket_idx < m_header.bucket_count) in GetHashIndex()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multimap/
Dreserve.pass.cpp55 size_t buckets = c.bucket_count(); in reserve_invariant()
59 assert(buckets == c.bucket_count()); in reserve_invariant()
80 assert(c.bucket_count() >= 7); in main()
82 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
86 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
89 assert(c.bucket_count() >= 16); in main()
108 assert(c.bucket_count() >= 7); in main()
110 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
114 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
117 assert(c.bucket_count() >= 16); in main()
Drehash.pass.cpp31 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
81 assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in test()
100 assert(c.bucket_count() >= 7); in main()
103 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
108 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
112 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
131 assert(c.bucket_count() >= 7); in main()
134 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
139 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
143 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/external/libcxx/test/std/containers/unord/unord.multimap/
Dreserve.pass.cpp56 size_t buckets = c.bucket_count(); in reserve_invariant()
60 assert(buckets == c.bucket_count()); in reserve_invariant()
81 assert(c.bucket_count() >= 7); in main()
83 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
87 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
90 assert(c.bucket_count() >= 16); in main()
109 assert(c.bucket_count() >= 7); in main()
111 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
115 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
118 assert(c.bucket_count() >= 16); in main()
Drehash.pass.cpp32 assert(c.bucket_count() >= c.size() / c.max_load_factor() && c.bucket_count() >= n); in rehash_postcondition()
82 assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in test()
101 assert(c.bucket_count() >= 7); in main()
104 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
109 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
113 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
132 assert(c.bucket_count() >= 7); in main()
135 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
140 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
144 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/external/tensorflow/tensorflow/core/lib/monitoring/
Dsampler.cc70 ExponentialBuckets(double scale, double growth_factor, int bucket_count) in ExponentialBuckets() argument
72 ComputeBucketLimits(scale, growth_factor, bucket_count)) {} in ExponentialBuckets()
81 int bucket_count) { in ComputeBucketLimits() argument
82 CHECK_GT(bucket_count, 0); in ComputeBucketLimits()
85 for (int i = 0; i < bucket_count; i++) { in ComputeBucketLimits()
114 int bucket_count) { in Exponential() argument
116 new ExponentialBuckets(scale, growth_factor, bucket_count)); in Exponential()
/external/webrtc/system_wrappers/source/
Dmetrics.cc33 RtcHistogram(const std::string& name, int min, int max, int bucket_count) in RtcHistogram() argument
34 : min_(min), max_(max), info_(name, min, max, bucket_count) { in RtcHistogram()
35 RTC_DCHECK_GT(bucket_count, 0); in RtcHistogram()
57 new SampleInfo(info_.name, info_.min, info_.max, info_.bucket_count); in GetAndReset()
114 int bucket_count) { in GetCountsHistogram() argument
120 RtcHistogram* hist = new RtcHistogram(name, min, max, bucket_count); in GetCountsHistogram()
228 int bucket_count) { in HistogramFactoryGetCounts() argument
231 return HistogramFactoryGetCountsLinear(name, min, max, bucket_count); in HistogramFactoryGetCounts()
241 int bucket_count) { in HistogramFactoryGetCountsLinear() argument
246 return map->GetCountsHistogram(name, min, max, bucket_count); in HistogramFactoryGetCountsLinear()
[all …]
/external/webrtc/system_wrappers/include/
Dmetrics.h122 #define RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count) \ argument
125 name, min, max, bucket_count))
127 #define RTC_HISTOGRAM_COUNTS_LINEAR(name, sample, min, max, bucket_count) \ argument
130 name, min, max, bucket_count))
152 #define RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, min, max, bucket_count) \ argument
155 name, min, max, bucket_count))
295 #define RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count) \ argument
296 webrtc::metrics_impl::NoOp(name, sample, min, max, bucket_count)
298 #define RTC_HISTOGRAM_COUNTS_LINEAR(name, sample, min, max, bucket_count) \ argument
299 webrtc::metrics_impl::NoOp(name, sample, min, max, bucket_count)
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/
Dinit.pass.cpp48 assert(c.bucket_count() >= 7); in main()
60 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
78 assert(c.bucket_count() >= 7); in main()
90 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
111 assert(c.bucket_count() >= 12); in main()
124 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
145 assert(c.bucket_count() >= 12); in main()
159 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()

12345678910>>...17