diff options
Diffstat (limited to 'libc/src/math/generic/log2.cpp')
-rw-r--r-- | libc/src/math/generic/log2.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/src/math/generic/log2.cpp b/libc/src/math/generic/log2.cpp index 27ca2fc..f0c0ae3 100644 --- a/libc/src/math/generic/log2.cpp +++ b/libc/src/math/generic/log2.cpp @@ -18,8 +18,8 @@ #include "src/__support/macros/config.h" #include "src/__support/macros/optimization.h" // LIBC_UNLIKELY -#include "common_constants.h" #include "log_range_reduction.h" +#include "src/__support/math/common_constants.h" namespace LIBC_NAMESPACE_DECL { @@ -30,6 +30,8 @@ using LIBC_NAMESPACE::operator""_u128; namespace { +using namespace common_constants_internal; + constexpr fputil::DoubleDouble LOG2_E = {0x1.777d0ffda0d24p-56, 0x1.71547652b82fep0}; @@ -859,6 +861,7 @@ double log2_accurate(int e_x, int index, double m_x) { } // namespace LLVM_LIBC_FUNCTION(double, log2, (double x)) { + using namespace common_constants_internal; using FPBits_t = typename fputil::FPBits<double>; FPBits_t xbits(x); |