Searched refs:max_log (Results 1 - 3 of 3) sorted by relevance

/external/chromium_org/third_party/leveldatabase/src/util/
H A Drandom.h54 // Skewed: pick "base" uniformly from range [0,max_log] and then
56 // range [0,2^max_log-1] with exponential bias towards smaller numbers.
57 uint32_t Skewed(int max_log) { argument
58 return Uniform(1 << Uniform(max_log + 1));
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dtcmalloc_unittest.cc239 // Pick "base" uniformly from range [0,max_log] and then return
241 // [0,2^max_log-1] with bias towards smaller numbers.
242 int Skewed(int max_log) { argument
243 const int base = random() % (max_log+1);
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dtcmalloc_unittest.cc239 // Pick "base" uniformly from range [0,max_log] and then return
241 // [0,2^max_log-1] with bias towards smaller numbers.
242 int Skewed(int max_log) { argument
243 const int base = random() % (max_log+1);

Completed in 135 milliseconds