summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/tanhf.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2024-07-11 12:35:22 -0700
committerGitHub <noreply@github.com>2024-07-11 12:35:22 -0700
commit3f30effe1bd81fa1b039218a9bfe79c3b03fafad (patch)
treef3f9bbaca2e1088607359c74c4c696742383c032 /libc/src/math/generic/tanhf.cpp
parent2d7e136fc0e31207b962397250bc1581203c8d59 (diff)
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)
This is a part of #97655.
Diffstat (limited to 'libc/src/math/generic/tanhf.cpp')
-rw-r--r--libc/src/math/generic/tanhf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/math/generic/tanhf.cpp b/libc/src/math/generic/tanhf.cpp
index 0efd0cefebe5..32153c3e1c94 100644
--- a/libc/src/math/generic/tanhf.cpp
+++ b/libc/src/math/generic/tanhf.cpp
@@ -11,11 +11,12 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
+#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
// 2^6 * log2(e)
constexpr double LOG2_E_EXP2_6 = ExpBase::LOG2_B * 2.0;
@@ -116,4 +117,4 @@ LLVM_LIBC_FUNCTION(float, tanhf, (float x)) {
return static_cast<float>((r - mh) / (r + mh));
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL