aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math/generic/log10.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/math/generic/log10.cpp')
-rw-r--r--libc/src/math/generic/log10.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/src/math/generic/log10.cpp b/libc/src/math/generic/log10.cpp
index 1c4e559..95f24fa 100644
--- a/libc/src/math/generic/log10.cpp
+++ b/libc/src/math/generic/log10.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 LOG10_E = {0x1.95355baaafad3p-57,
0x1.bcb7b1526e50ep-2};
@@ -739,6 +741,7 @@ double log10_accurate(int e_x, int index, double m_x) {
} // namespace
LLVM_LIBC_FUNCTION(double, log10, (double x)) {
+ using namespace common_constants_internal;
using FPBits_t = typename fputil::FPBits<double>;
FPBits_t xbits(x);