Home
last modified time | relevance | path

Searched refs:FastLog2 (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/third_party/tcmalloc/chromium/src/
Dsampler.h125 static double FastLog2(const double & d); // Computes Log2(x) quickly
166 inline double Sampler::FastLog2(const double & d) { in FastLog2() function
Dsampler.cc126 return static_cast<size_t>(min(0.0, (FastLog2(q) - 26)) * (-log(2.0) in PickNextSamplingPoint()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dsampler.h125 static double FastLog2(const double & d); // Computes Log2(x) quickly
166 inline double Sampler::FastLog2(const double & d) { in FastLog2() function
Dsampler.cc126 return static_cast<size_t>(min(0.0, (FastLog2(q) - 26)) * (-log(2.0) in PickNextSamplingPoint()
/external/chromium_org/third_party/brotli/src/brotli/enc/
Dhistogram.h63 double retval = total_count_ * FastLog2(total_count_); in EntropyBitCost()
65 retval -= data_[i] * FastLog2(data_[i]); in EntropyBitCost()
Dcluster.h56 return size_a * FastLog2(size_a) + size_b * FastLog2(size_b) - in ClusterCostDiff()
57 size_c * FastLog2(size_c); in ClusterCostDiff()
Dfast_log.h152 static inline double FastLog2(int v) { in FastLog2() function
Dblock_splitter.cc144 return count == 0 ? FastLog2(total) + 2 : FastLog2(total) - FastLog2(count); in BitCost()
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Dsampler_test.cc331 TEST(Sampler, FastLog2) { in TEST() argument
338 double fastlog = sampler.FastLog2(e); in TEST()
542 LOG(INFO) << StringPrintf("FastLog2(q) = %f\n", sampler.FastLog2(q)); in TEST()
547 = static_cast<uint64_t>(min(sampler.FastLog2(q) - 26, 0.0) in TEST()
563 = static_cast<uint64_t>(min(sampler.FastLog2(q) - 26, 0.0) in TEST()
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Dsampler_test.cc331 TEST(Sampler, FastLog2) { in TEST() argument
338 double fastlog = sampler.FastLog2(e); in TEST()
542 LOG(INFO) << StringPrintf("FastLog2(q) = %f\n", sampler.FastLog2(q)); in TEST()
547 = static_cast<uint64_t>(min(sampler.FastLog2(q) - 26, 0.0) in TEST()
563 = static_cast<uint64_t>(min(sampler.FastLog2(q) - 26, 0.0) in TEST()