Home
last modified time | relevance | path

Searched refs:next_sample (Results 1 – 21 of 21) sorted by relevance

/external/openscreen/third_party/abseil/src/absl/container/internal/
Dhashtablez_sampler.cc189 HashtablezInfo* SampleSlow(int64_t* next_sample) { in SampleSlow() argument
191 *next_sample = 1; in SampleSlow()
196 *next_sample = std::numeric_limits<int64_t>::max(); in SampleSlow()
199 bool first = *next_sample < 0; in SampleSlow()
200 *next_sample = g_exponential_biased_generator.GetStride( in SampleSlow()
203 ABSL_ASSERT(*next_sample >= 1); in SampleSlow()
213 if (ABSL_PREDICT_TRUE(--*next_sample > 0)) return nullptr; in SampleSlow()
214 return SampleSlow(next_sample); in SampleSlow()
Dhashtablez_sampler_test.cc189 int64_t next_sample = 0; in TEST() local
190 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
191 EXPECT_GT(next_sample, 0); in TEST()
202 int64_t next_sample = 0; in TEST() local
203 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
204 EXPECT_GT(next_sample, 0); in TEST()
Dhashtablez_sampler.h139 HashtablezInfo* SampleSlow(int64_t* next_sample);
/external/libtextclassifier/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc189 HashtablezInfo* SampleSlow(int64_t* next_sample) { in SampleSlow() argument
191 *next_sample = 1; in SampleSlow()
196 *next_sample = std::numeric_limits<int64_t>::max(); in SampleSlow()
199 bool first = *next_sample < 0; in SampleSlow()
200 *next_sample = g_exponential_biased_generator.GetStride( in SampleSlow()
203 ABSL_ASSERT(*next_sample >= 1); in SampleSlow()
213 if (ABSL_PREDICT_TRUE(--*next_sample > 0)) return nullptr; in SampleSlow()
214 return SampleSlow(next_sample); in SampleSlow()
Dhashtablez_sampler_test.cc189 int64_t next_sample = 0; in TEST() local
190 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
191 EXPECT_GT(next_sample, 0); in TEST()
202 int64_t next_sample = 0; in TEST() local
203 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
204 EXPECT_GT(next_sample, 0); in TEST()
Dhashtablez_sampler.h139 HashtablezInfo* SampleSlow(int64_t* next_sample);
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc189 HashtablezInfo* SampleSlow(int64_t* next_sample) { in SampleSlow() argument
191 *next_sample = 1; in SampleSlow()
196 *next_sample = std::numeric_limits<int64_t>::max(); in SampleSlow()
199 bool first = *next_sample < 0; in SampleSlow()
200 *next_sample = g_exponential_biased_generator.GetStride( in SampleSlow()
203 ABSL_ASSERT(*next_sample >= 1); in SampleSlow()
213 if (ABSL_PREDICT_TRUE(--*next_sample > 0)) return nullptr; in SampleSlow()
214 return SampleSlow(next_sample); in SampleSlow()
Dhashtablez_sampler_test.cc189 int64_t next_sample = 0; in TEST() local
190 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
191 EXPECT_GT(next_sample, 0); in TEST()
202 int64_t next_sample = 0; in TEST() local
203 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
204 EXPECT_GT(next_sample, 0); in TEST()
Dhashtablez_sampler.h139 HashtablezInfo* SampleSlow(int64_t* next_sample);
/external/webrtc/third_party/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc188 HashtablezInfo* SampleSlow(int64_t* next_sample) { in SampleSlow() argument
190 *next_sample = 1; in SampleSlow()
195 *next_sample = std::numeric_limits<int64_t>::max(); in SampleSlow()
198 bool first = *next_sample < 0; in SampleSlow()
199 *next_sample = g_exponential_biased_generator.GetStride( in SampleSlow()
202 ABSL_ASSERT(*next_sample >= 1); in SampleSlow()
212 if (ABSL_PREDICT_TRUE(--*next_sample > 0)) return nullptr; in SampleSlow()
213 return SampleSlow(next_sample); in SampleSlow()
Dhashtablez_sampler_test.cc178 int64_t next_sample = 0; in TEST() local
179 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
180 EXPECT_GT(next_sample, 0); in TEST()
191 int64_t next_sample = 0; in TEST() local
192 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
193 EXPECT_GT(next_sample, 0); in TEST()
Dhashtablez_sampler.h128 HashtablezInfo* SampleSlow(int64_t* next_sample);
/external/angle/third_party/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc192 HashtablezInfo* SampleSlow(int64_t* next_sample) { in SampleSlow() argument
194 *next_sample = 1; in SampleSlow()
199 *next_sample = std::numeric_limits<int64_t>::max(); in SampleSlow()
202 bool first = *next_sample < 0; in SampleSlow()
203 *next_sample = g_exponential_biased_generator.GetStride( in SampleSlow()
206 ABSL_ASSERT(*next_sample >= 1); in SampleSlow()
216 if (ABSL_PREDICT_TRUE(--*next_sample > 0)) return nullptr; in SampleSlow()
217 return SampleSlow(next_sample); in SampleSlow()
Dhashtablez_sampler_test.cc195 int64_t next_sample = 0; in TEST() local
196 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
197 EXPECT_GT(next_sample, 0); in TEST()
208 int64_t next_sample = 0; in TEST() local
209 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
210 EXPECT_GT(next_sample, 0); in TEST()
Dhashtablez_sampler.h140 HashtablezInfo* SampleSlow(int64_t* next_sample);
/external/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc188 HashtablezInfo* SampleSlow(int64_t* next_sample) { in SampleSlow() argument
190 *next_sample = 1; in SampleSlow()
195 *next_sample = std::numeric_limits<int64_t>::max(); in SampleSlow()
198 bool first = *next_sample < 0; in SampleSlow()
199 *next_sample = g_exponential_biased_generator.GetStride( in SampleSlow()
202 ABSL_ASSERT(*next_sample >= 1); in SampleSlow()
212 if (ABSL_PREDICT_TRUE(--*next_sample > 0)) return nullptr; in SampleSlow()
213 return SampleSlow(next_sample); in SampleSlow()
Dhashtablez_sampler_test.cc178 int64_t next_sample = 0; in TEST() local
179 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
180 EXPECT_GT(next_sample, 0); in TEST()
191 int64_t next_sample = 0; in TEST() local
192 HashtablezInfo* sample = SampleSlow(&next_sample); in TEST()
193 EXPECT_GT(next_sample, 0); in TEST()
Dhashtablez_sampler.h128 HashtablezInfo* SampleSlow(int64_t* next_sample);
/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dcordz_functions.cc94 void cordz_set_next_sample_for_testing(int64_t next_sample) { in cordz_set_next_sample_for_testing() argument
95 cordz_next_sample = next_sample; in cordz_set_next_sample_for_testing()
Dcordz_functions.h72 void cordz_set_next_sample_for_testing(int64_t next_sample);
/external/tensorflow/tensorflow/python/keras/utils/
Ddata_utils.py813 def next_sample(uid): function
878 executor.apply_async(next_sample, (self.uid,)), block=True)