Searched refs:log2 (Results 1 - 10 of 10) sorted by relevance

/fuchsia/zircon/kernel/include/
H A Dpow2.h24 // Compute log2(|val|), rounded as requested by |ceiling|. We define
25 // log2(0) to be 0.
31 uint log2 = (uint)(sizeof(val) * CHAR_BIT) - 1 - __builtin_clz(val);
33 if (ceiling && val - (1u << log2) > 0) {
34 ++log2;
37 return log2;
40 // Compute floor(log2(|val|)), or 0 if |val| is 0
46 // Compute ceil(log2(|val|)), or 0 if |val| is 0
52 // Compute log2(|val|), rounded as requested by |ceiling|. We define
53 // log2(
[all...]
/fuchsia/zircon/kernel/lib/crypto/
H A Dprng_unittest.cpp119 // Technically could fall out of the log2 loop below, but let's be explicit
125 for (int log2 = 1; log2 < 64; ++log2) {
127 uint64_t bound = 1ull << log2;
H A Dprng.cpp113 const uint log2 = log2_ulong_ceil(exclusive_upper_bound);
114 const size_t mask = (log2 != sizeof(uint64_t) * CHAR_BIT)
115 ? (uint64_t(1) << log2) - 1
/fuchsia/zircon/third_party/ulib/musl/third_party/math/
H A Dlog2l.c59 return log2(x);
91 /* log2(e) - 1 */
147 /* Multiply log of fraction by log2(e)
165 return log2(x);
H A Dlog2.c17 * log2(x) = (f - f*f/2 + r)/log(2) + k
33 double log2(double x) { function
/fuchsia/zircon/system/ulib/cobalt-client/
H A Dhistogram.cpp58 unshifted_bucket = static_cast<uint32_t>(floor((log2(diff) - log2(options.scalar)) / log2(options.base)));
/fuchsia/zircon/kernel/dev/pcie/
H A Dpcie_irqs.cpp389 uint log2 = log2_uint_ceil(requested_irqs); local
391 DEBUG_ASSERT(log2 <= 5);
392 DEBUG_ASSERT(!log2 || ((0x1u << (log2 - 1)) < requested_irqs));
393 DEBUG_ASSERT((0x1u << log2) >= requested_irqs);
396 PCIE_CAP_MSI_CTRL_SET_MME(log2, cfg_->Read(irq_.msi->ctrl_reg())));
/fuchsia/zircon/third_party/ulib/musl/include/
H A Dmath.h263 double log2(double);
/fuchsia/zircon/system/utest/fbl/
H A Dintrusive_wavl_tree_tests.cpp197 double log2N = log2(static_cast<double>(tree.size()));
/fuchsia/zircon/third_party/ulib/musl/
H A Dmusl-rules.mk928 $(LOCAL_DIR)/third_party/math/log2.c \

Completed in 103 milliseconds