summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/logf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/math/generic/logf.cpp')
-rw-r--r--libc/src/math/generic/logf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/math/generic/logf.cpp b/libc/src/math/generic/logf.cpp
index 5296ba6bc13c..f8ecf320568a 100644
--- a/libc/src/math/generic/logf.cpp
+++ b/libc/src/math/generic/logf.cpp
@@ -14,6 +14,7 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
@@ -49,7 +50,7 @@
// USA, January 16-22, 2022.
// https://people.cs.rutgers.edu/~sn349/papers/rlibmall-popl-2022.pdf
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, logf, (float x)) {
constexpr double LOG_2 = 0x1.62e42fefa39efp-1;
@@ -170,4 +171,4 @@ LLVM_LIBC_FUNCTION(float, logf, (float x)) {
return static_cast<float>(r);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL