aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math/amdgpu
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2024-07-12 09:28:41 -0700
committerGitHub <noreply@github.com>2024-07-12 09:28:41 -0700
commit5ff3ff33ff930e4ec49da7910612d8a41eb068cb (patch)
treeffb876db6deb2dfd4c6c0c11ddf692db75082f7f /libc/src/math/amdgpu
parentdd866040aeb2703debacc141f60429ea0f567146 (diff)
downloadllvm-5ff3ff33ff930e4ec49da7910612d8a41eb068cb.zip
llvm-5ff3ff33ff930e4ec49da7910612d8a41eb068cb.tar.gz
llvm-5ff3ff33ff930e4ec49da7910612d8a41eb068cb.tar.bz2
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)
This is a part of #97655.
Diffstat (limited to 'libc/src/math/amdgpu')
-rw-r--r--libc/src/math/amdgpu/acos.cpp5
-rw-r--r--libc/src/math/amdgpu/acosf.cpp5
-rw-r--r--libc/src/math/amdgpu/acosh.cpp5
-rw-r--r--libc/src/math/amdgpu/acoshf.cpp5
-rw-r--r--libc/src/math/amdgpu/asin.cpp5
-rw-r--r--libc/src/math/amdgpu/asinf.cpp5
-rw-r--r--libc/src/math/amdgpu/asinh.cpp5
-rw-r--r--libc/src/math/amdgpu/asinhf.cpp5
-rw-r--r--libc/src/math/amdgpu/atan.cpp5
-rw-r--r--libc/src/math/amdgpu/atan2.cpp5
-rw-r--r--libc/src/math/amdgpu/atan2f.cpp5
-rw-r--r--libc/src/math/amdgpu/atanf.cpp5
-rw-r--r--libc/src/math/amdgpu/atanh.cpp5
-rw-r--r--libc/src/math/amdgpu/atanhf.cpp5
-rw-r--r--libc/src/math/amdgpu/ceil.cpp5
-rw-r--r--libc/src/math/amdgpu/ceilf.cpp5
-rw-r--r--libc/src/math/amdgpu/copysign.cpp5
-rw-r--r--libc/src/math/amdgpu/copysignf.cpp5
-rw-r--r--libc/src/math/amdgpu/cos.cpp5
-rw-r--r--libc/src/math/amdgpu/cosf.cpp5
-rw-r--r--libc/src/math/amdgpu/cosh.cpp5
-rw-r--r--libc/src/math/amdgpu/coshf.cpp5
-rw-r--r--libc/src/math/amdgpu/declarations.h5
-rw-r--r--libc/src/math/amdgpu/erf.cpp5
-rw-r--r--libc/src/math/amdgpu/erff.cpp5
-rw-r--r--libc/src/math/amdgpu/exp.cpp5
-rw-r--r--libc/src/math/amdgpu/exp10.cpp5
-rw-r--r--libc/src/math/amdgpu/exp10f.cpp5
-rw-r--r--libc/src/math/amdgpu/exp2.cpp5
-rw-r--r--libc/src/math/amdgpu/exp2f.cpp5
-rw-r--r--libc/src/math/amdgpu/expf.cpp5
-rw-r--r--libc/src/math/amdgpu/expm1.cpp5
-rw-r--r--libc/src/math/amdgpu/expm1f.cpp5
-rw-r--r--libc/src/math/amdgpu/fabs.cpp5
-rw-r--r--libc/src/math/amdgpu/fabsf.cpp5
-rw-r--r--libc/src/math/amdgpu/fdim.cpp5
-rw-r--r--libc/src/math/amdgpu/fdimf.cpp5
-rw-r--r--libc/src/math/amdgpu/floor.cpp5
-rw-r--r--libc/src/math/amdgpu/floorf.cpp5
-rw-r--r--libc/src/math/amdgpu/fma.cpp5
-rw-r--r--libc/src/math/amdgpu/fmaf.cpp5
-rw-r--r--libc/src/math/amdgpu/fmax.cpp5
-rw-r--r--libc/src/math/amdgpu/fmaxf.cpp5
-rw-r--r--libc/src/math/amdgpu/fmin.cpp5
-rw-r--r--libc/src/math/amdgpu/fminf.cpp5
-rw-r--r--libc/src/math/amdgpu/fmod.cpp5
-rw-r--r--libc/src/math/amdgpu/fmodf.cpp5
-rw-r--r--libc/src/math/amdgpu/frexp.cpp5
-rw-r--r--libc/src/math/amdgpu/frexpf.cpp5
-rw-r--r--libc/src/math/amdgpu/hypot.cpp5
-rw-r--r--libc/src/math/amdgpu/hypotf.cpp5
-rw-r--r--libc/src/math/amdgpu/ilogb.cpp5
-rw-r--r--libc/src/math/amdgpu/ilogbf.cpp5
-rw-r--r--libc/src/math/amdgpu/ldexp.cpp5
-rw-r--r--libc/src/math/amdgpu/ldexpf.cpp5
-rw-r--r--libc/src/math/amdgpu/llrint.cpp5
-rw-r--r--libc/src/math/amdgpu/llrintf.cpp5
-rw-r--r--libc/src/math/amdgpu/log.cpp5
-rw-r--r--libc/src/math/amdgpu/log10.cpp5
-rw-r--r--libc/src/math/amdgpu/log10f.cpp5
-rw-r--r--libc/src/math/amdgpu/log1p.cpp5
-rw-r--r--libc/src/math/amdgpu/log1pf.cpp5
-rw-r--r--libc/src/math/amdgpu/log2.cpp5
-rw-r--r--libc/src/math/amdgpu/log2f.cpp5
-rw-r--r--libc/src/math/amdgpu/logb.cpp5
-rw-r--r--libc/src/math/amdgpu/logbf.cpp5
-rw-r--r--libc/src/math/amdgpu/logf.cpp5
-rw-r--r--libc/src/math/amdgpu/lrint.cpp5
-rw-r--r--libc/src/math/amdgpu/lrintf.cpp5
-rw-r--r--libc/src/math/amdgpu/nearbyint.cpp5
-rw-r--r--libc/src/math/amdgpu/nearbyintf.cpp5
-rw-r--r--libc/src/math/amdgpu/nextafter.cpp5
-rw-r--r--libc/src/math/amdgpu/nextafterf.cpp5
-rw-r--r--libc/src/math/amdgpu/platform.h5
-rw-r--r--libc/src/math/amdgpu/pow.cpp5
-rw-r--r--libc/src/math/amdgpu/powf.cpp5
-rw-r--r--libc/src/math/amdgpu/powi.cpp5
-rw-r--r--libc/src/math/amdgpu/powif.cpp5
-rw-r--r--libc/src/math/amdgpu/remainder.cpp5
-rw-r--r--libc/src/math/amdgpu/remainderf.cpp5
-rw-r--r--libc/src/math/amdgpu/remquo.cpp5
-rw-r--r--libc/src/math/amdgpu/remquof.cpp5
-rw-r--r--libc/src/math/amdgpu/rint.cpp5
-rw-r--r--libc/src/math/amdgpu/rintf.cpp5
-rw-r--r--libc/src/math/amdgpu/round.cpp5
-rw-r--r--libc/src/math/amdgpu/roundf.cpp5
-rw-r--r--libc/src/math/amdgpu/scalbn.cpp5
-rw-r--r--libc/src/math/amdgpu/scalbnf.cpp5
-rw-r--r--libc/src/math/amdgpu/sin.cpp5
-rw-r--r--libc/src/math/amdgpu/sincos.cpp5
-rw-r--r--libc/src/math/amdgpu/sincosf.cpp5
-rw-r--r--libc/src/math/amdgpu/sinf.cpp5
-rw-r--r--libc/src/math/amdgpu/sinh.cpp5
-rw-r--r--libc/src/math/amdgpu/sinhf.cpp5
-rw-r--r--libc/src/math/amdgpu/sqrt.cpp5
-rw-r--r--libc/src/math/amdgpu/sqrtf.cpp5
-rw-r--r--libc/src/math/amdgpu/tan.cpp5
-rw-r--r--libc/src/math/amdgpu/tanf.cpp5
-rw-r--r--libc/src/math/amdgpu/tanh.cpp5
-rw-r--r--libc/src/math/amdgpu/tanhf.cpp5
-rw-r--r--libc/src/math/amdgpu/tgamma.cpp5
-rw-r--r--libc/src/math/amdgpu/tgammaf.cpp5
-rw-r--r--libc/src/math/amdgpu/trunc.cpp5
-rw-r--r--libc/src/math/amdgpu/truncf.cpp5
104 files changed, 312 insertions, 208 deletions
diff --git a/libc/src/math/amdgpu/acos.cpp b/libc/src/math/amdgpu/acos.cpp
index b1e30fe..de870f2 100644
--- a/libc/src/math/amdgpu/acos.cpp
+++ b/libc/src/math/amdgpu/acos.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, acos, (double x)) { return __ocml_acos_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/acosf.cpp b/libc/src/math/amdgpu/acosf.cpp
index 4c2dd4b..0a72a70 100644
--- a/libc/src/math/amdgpu/acosf.cpp
+++ b/libc/src/math/amdgpu/acosf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, acosf, (float x)) { return __ocml_acos_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/acosh.cpp b/libc/src/math/amdgpu/acosh.cpp
index dcdeeab..15c9734 100644
--- a/libc/src/math/amdgpu/acosh.cpp
+++ b/libc/src/math/amdgpu/acosh.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, acosh, (double x)) { return __ocml_acosh_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/acoshf.cpp b/libc/src/math/amdgpu/acoshf.cpp
index 52baa2e..79e71b0 100644
--- a/libc/src/math/amdgpu/acoshf.cpp
+++ b/libc/src/math/amdgpu/acoshf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, acoshf, (float x)) { return __ocml_acosh_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/asin.cpp b/libc/src/math/amdgpu/asin.cpp
index 835c317..a79641e 100644
--- a/libc/src/math/amdgpu/asin.cpp
+++ b/libc/src/math/amdgpu/asin.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, asin, (double x)) { return __ocml_asin_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/asinf.cpp b/libc/src/math/amdgpu/asinf.cpp
index 72c45d5..e70944a 100644
--- a/libc/src/math/amdgpu/asinf.cpp
+++ b/libc/src/math/amdgpu/asinf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, asinf, (float x)) { return __ocml_asin_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/asinh.cpp b/libc/src/math/amdgpu/asinh.cpp
index 7a9f7ea..64236859 100644
--- a/libc/src/math/amdgpu/asinh.cpp
+++ b/libc/src/math/amdgpu/asinh.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, asinh, (double x)) { return __ocml_asinh_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/asinhf.cpp b/libc/src/math/amdgpu/asinhf.cpp
index 28d6bde..bafa77f 100644
--- a/libc/src/math/amdgpu/asinhf.cpp
+++ b/libc/src/math/amdgpu/asinhf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, asinhf, (float x)) { return __ocml_asinh_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/atan.cpp b/libc/src/math/amdgpu/atan.cpp
index a1fa38b..49941e9 100644
--- a/libc/src/math/amdgpu/atan.cpp
+++ b/libc/src/math/amdgpu/atan.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, atan, (double x)) { return __ocml_atan_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/atan2.cpp b/libc/src/math/amdgpu/atan2.cpp
index 9cfdba7..f590750 100644
--- a/libc/src/math/amdgpu/atan2.cpp
+++ b/libc/src/math/amdgpu/atan2.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, atan2, (double x, double y)) {
return __ocml_atan2_f64(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/atan2f.cpp b/libc/src/math/amdgpu/atan2f.cpp
index ef56293..736c77d 100644
--- a/libc/src/math/amdgpu/atan2f.cpp
+++ b/libc/src/math/amdgpu/atan2f.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, atan2f, (float x, float y)) {
return __ocml_atan2_f32(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/atanf.cpp b/libc/src/math/amdgpu/atanf.cpp
index bbcceca..ab1837d 100644
--- a/libc/src/math/amdgpu/atanf.cpp
+++ b/libc/src/math/amdgpu/atanf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, atanf, (float x)) { return __ocml_atan_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/atanh.cpp b/libc/src/math/amdgpu/atanh.cpp
index ec46258..091c155 100644
--- a/libc/src/math/amdgpu/atanh.cpp
+++ b/libc/src/math/amdgpu/atanh.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, atanh, (double x)) { return __ocml_atanh_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/atanhf.cpp b/libc/src/math/amdgpu/atanhf.cpp
index 2272693..fa9cf39 100644
--- a/libc/src/math/amdgpu/atanhf.cpp
+++ b/libc/src/math/amdgpu/atanhf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, atanhf, (float x)) { return __ocml_atanh_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/ceil.cpp b/libc/src/math/amdgpu/ceil.cpp
index ad1407d..8834c7b 100644
--- a/libc/src/math/amdgpu/ceil.cpp
+++ b/libc/src/math/amdgpu/ceil.cpp
@@ -8,9 +8,10 @@
#include "src/math/ceil.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, ceil, (double x)) { return __builtin_ceil(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/ceilf.cpp b/libc/src/math/amdgpu/ceilf.cpp
index c4fc58d..5d26a30 100644
--- a/libc/src/math/amdgpu/ceilf.cpp
+++ b/libc/src/math/amdgpu/ceilf.cpp
@@ -8,9 +8,10 @@
#include "src/math/ceilf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, ceilf, (float x)) { return __builtin_ceilf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/copysign.cpp b/libc/src/math/amdgpu/copysign.cpp
index 6f804bd..06ef36f 100644
--- a/libc/src/math/amdgpu/copysign.cpp
+++ b/libc/src/math/amdgpu/copysign.cpp
@@ -8,11 +8,12 @@
#include "src/math/copysign.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, copysign, (double x, double y)) {
return __builtin_copysign(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/copysignf.cpp b/libc/src/math/amdgpu/copysignf.cpp
index 4d7e132..aea94f3 100644
--- a/libc/src/math/amdgpu/copysignf.cpp
+++ b/libc/src/math/amdgpu/copysignf.cpp
@@ -8,11 +8,12 @@
#include "src/math/copysignf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, copysignf, (float x, float y)) {
return __builtin_copysignf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/cos.cpp b/libc/src/math/amdgpu/cos.cpp
index 68239d9..a4d4c94 100644
--- a/libc/src/math/amdgpu/cos.cpp
+++ b/libc/src/math/amdgpu/cos.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, cos, (double x)) { return __ocml_cos_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/cosf.cpp b/libc/src/math/amdgpu/cosf.cpp
index a60e9ea..99ec118 100644
--- a/libc/src/math/amdgpu/cosf.cpp
+++ b/libc/src/math/amdgpu/cosf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, cosf, (float x)) { return __ocml_cos_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/cosh.cpp b/libc/src/math/amdgpu/cosh.cpp
index b71df0c..d94d7af 100644
--- a/libc/src/math/amdgpu/cosh.cpp
+++ b/libc/src/math/amdgpu/cosh.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, cosh, (double x)) { return __ocml_cosh_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/coshf.cpp b/libc/src/math/amdgpu/coshf.cpp
index 699fb04..5b641be 100644
--- a/libc/src/math/amdgpu/coshf.cpp
+++ b/libc/src/math/amdgpu/coshf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, coshf, (float x)) { return __ocml_cosh_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/declarations.h b/libc/src/math/amdgpu/declarations.h
index 81d788d..98c14ee 100644
--- a/libc/src/math/amdgpu/declarations.h
+++ b/libc/src/math/amdgpu/declarations.h
@@ -12,8 +12,9 @@
#include "platform.h"
#include "src/__support/GPU/utils.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
extern "C" {
float __ocml_acos_f32(float);
@@ -83,6 +84,6 @@ double __ocml_tgamma_f64(double);
float __ocml_tgamma_f32(float);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_SRC_MATH_AMDGPU_DECLARATIONS_H
diff --git a/libc/src/math/amdgpu/erf.cpp b/libc/src/math/amdgpu/erf.cpp
index 7a46455..07ae268 100644
--- a/libc/src/math/amdgpu/erf.cpp
+++ b/libc/src/math/amdgpu/erf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, erf, (double x)) { return __ocml_erf_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/erff.cpp b/libc/src/math/amdgpu/erff.cpp
index 1f77d08..a4b7b27 100644
--- a/libc/src/math/amdgpu/erff.cpp
+++ b/libc/src/math/amdgpu/erff.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, erff, (float x)) { return __ocml_erf_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/exp.cpp b/libc/src/math/amdgpu/exp.cpp
index d19c73d..dae79be 100644
--- a/libc/src/math/amdgpu/exp.cpp
+++ b/libc/src/math/amdgpu/exp.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, exp, (double x)) { return __ocml_exp_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/exp10.cpp b/libc/src/math/amdgpu/exp10.cpp
index 17d8f33..f13d218 100644
--- a/libc/src/math/amdgpu/exp10.cpp
+++ b/libc/src/math/amdgpu/exp10.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, exp10, (double x)) { return __ocml_exp10_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/exp10f.cpp b/libc/src/math/amdgpu/exp10f.cpp
index ddab555..883e734 100644
--- a/libc/src/math/amdgpu/exp10f.cpp
+++ b/libc/src/math/amdgpu/exp10f.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, exp10f, (float x)) { return __ocml_exp10_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/exp2.cpp b/libc/src/math/amdgpu/exp2.cpp
index dfbb1f8..fb336cf 100644
--- a/libc/src/math/amdgpu/exp2.cpp
+++ b/libc/src/math/amdgpu/exp2.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, exp2, (double x)) { return __ocml_exp2_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/exp2f.cpp b/libc/src/math/amdgpu/exp2f.cpp
index 016dfe3..77b4a9c 100644
--- a/libc/src/math/amdgpu/exp2f.cpp
+++ b/libc/src/math/amdgpu/exp2f.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, exp2f, (float x)) { return __ocml_exp2_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/expf.cpp b/libc/src/math/amdgpu/expf.cpp
index 3339307..6c44aad 100644
--- a/libc/src/math/amdgpu/expf.cpp
+++ b/libc/src/math/amdgpu/expf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, expf, (float x)) { return __ocml_exp_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/expm1.cpp b/libc/src/math/amdgpu/expm1.cpp
index d2ac28a..df3643f 100644
--- a/libc/src/math/amdgpu/expm1.cpp
+++ b/libc/src/math/amdgpu/expm1.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, expm1, (double x)) { return __ocml_expm1_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/expm1f.cpp b/libc/src/math/amdgpu/expm1f.cpp
index 0ffe1a3..2409997 100644
--- a/libc/src/math/amdgpu/expm1f.cpp
+++ b/libc/src/math/amdgpu/expm1f.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, expm1f, (float x)) { return __ocml_expm1_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fabs.cpp b/libc/src/math/amdgpu/fabs.cpp
index c0d063d..bb37596 100644
--- a/libc/src/math/amdgpu/fabs.cpp
+++ b/libc/src/math/amdgpu/fabs.cpp
@@ -8,9 +8,10 @@
#include "src/math/fabs.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, fabs, (double x)) { return __builtin_fabs(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fabsf.cpp b/libc/src/math/amdgpu/fabsf.cpp
index 398ffd0..2698618 100644
--- a/libc/src/math/amdgpu/fabsf.cpp
+++ b/libc/src/math/amdgpu/fabsf.cpp
@@ -8,9 +8,10 @@
#include "src/math/fabsf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, fabsf, (float x)) { return __builtin_fabsf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fdim.cpp b/libc/src/math/amdgpu/fdim.cpp
index f16942d..8ade0b2 100644
--- a/libc/src/math/amdgpu/fdim.cpp
+++ b/libc/src/math/amdgpu/fdim.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, fdim, (double x, double y)) {
return __ocml_fdim_f64(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fdimf.cpp b/libc/src/math/amdgpu/fdimf.cpp
index eccb441..ed3855e 100644
--- a/libc/src/math/amdgpu/fdimf.cpp
+++ b/libc/src/math/amdgpu/fdimf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, fdimf, (float x, float y)) {
return __ocml_fdim_f32(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/floor.cpp b/libc/src/math/amdgpu/floor.cpp
index eada89c..564efa9 100644
--- a/libc/src/math/amdgpu/floor.cpp
+++ b/libc/src/math/amdgpu/floor.cpp
@@ -8,9 +8,10 @@
#include "src/math/floor.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, floor, (double x)) { return __builtin_floor(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/floorf.cpp b/libc/src/math/amdgpu/floorf.cpp
index a5611c5..6717c8f 100644
--- a/libc/src/math/amdgpu/floorf.cpp
+++ b/libc/src/math/amdgpu/floorf.cpp
@@ -8,9 +8,10 @@
#include "src/math/floorf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, floorf, (float x)) { return __builtin_floorf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fma.cpp b/libc/src/math/amdgpu/fma.cpp
index 41a6ddf..c4a117e 100644
--- a/libc/src/math/amdgpu/fma.cpp
+++ b/libc/src/math/amdgpu/fma.cpp
@@ -8,11 +8,12 @@
#include "src/math/fma.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, fma, (double x, double y, double z)) {
return __builtin_fma(x, y, z);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fmaf.cpp b/libc/src/math/amdgpu/fmaf.cpp
index c948e32..c088bd5 100644
--- a/libc/src/math/amdgpu/fmaf.cpp
+++ b/libc/src/math/amdgpu/fmaf.cpp
@@ -8,11 +8,12 @@
#include "src/math/fmaf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, fmaf, (float x, float y, float z)) {
return __builtin_fmaf(x, y, z);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fmax.cpp b/libc/src/math/amdgpu/fmax.cpp
index 09f0f94..4740197 100644
--- a/libc/src/math/amdgpu/fmax.cpp
+++ b/libc/src/math/amdgpu/fmax.cpp
@@ -10,12 +10,13 @@
#include "src/__support/CPP/bit.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, fmax, (double x, double y)) {
return __builtin_fmax(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fmaxf.cpp b/libc/src/math/amdgpu/fmaxf.cpp
index 5913a85..59ee825 100644
--- a/libc/src/math/amdgpu/fmaxf.cpp
+++ b/libc/src/math/amdgpu/fmaxf.cpp
@@ -9,11 +9,12 @@
#include "src/math/fmaxf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, fmaxf, (float x, float y)) {
return __builtin_fmaxf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fmin.cpp b/libc/src/math/amdgpu/fmin.cpp
index 0d6f352..694eb66 100644
--- a/libc/src/math/amdgpu/fmin.cpp
+++ b/libc/src/math/amdgpu/fmin.cpp
@@ -9,11 +9,12 @@
#include "src/math/fmin.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, fmin, (double x, double y)) {
return __builtin_fmin(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fminf.cpp b/libc/src/math/amdgpu/fminf.cpp
index 42744abf..2060b71 100644
--- a/libc/src/math/amdgpu/fminf.cpp
+++ b/libc/src/math/amdgpu/fminf.cpp
@@ -9,11 +9,12 @@
#include "src/math/fminf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, fminf, (float x, float y)) {
return __builtin_fminf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fmod.cpp b/libc/src/math/amdgpu/fmod.cpp
index 0654cdd..49d19c4d 100644
--- a/libc/src/math/amdgpu/fmod.cpp
+++ b/libc/src/math/amdgpu/fmod.cpp
@@ -8,11 +8,12 @@
#include "src/math/fmod.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, fmod, (double x, double y)) {
return __builtin_fmod(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/fmodf.cpp b/libc/src/math/amdgpu/fmodf.cpp
index b689046..8fbcb0c 100644
--- a/libc/src/math/amdgpu/fmodf.cpp
+++ b/libc/src/math/amdgpu/fmodf.cpp
@@ -8,11 +8,12 @@
#include "src/math/fmodf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, fmodf, (float x, float y)) {
return __builtin_fmodf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/frexp.cpp b/libc/src/math/amdgpu/frexp.cpp
index 0acf973..00e5187 100644
--- a/libc/src/math/amdgpu/frexp.cpp
+++ b/libc/src/math/amdgpu/frexp.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, frexp, (double x, int *p)) {
return __builtin_frexp(x, p);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/frexpf.cpp b/libc/src/math/amdgpu/frexpf.cpp
index d870bf3..2799e542 100644
--- a/libc/src/math/amdgpu/frexpf.cpp
+++ b/libc/src/math/amdgpu/frexpf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, frexpf, (float x, int *p)) {
return __builtin_frexpf(x, p);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/hypot.cpp b/libc/src/math/amdgpu/hypot.cpp
index ffc13504..dcf1152 100644
--- a/libc/src/math/amdgpu/hypot.cpp
+++ b/libc/src/math/amdgpu/hypot.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, hypot, (double x, double y)) {
return __ocml_hypot_f64(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/hypotf.cpp b/libc/src/math/amdgpu/hypotf.cpp
index 811fc54..68ec659 100644
--- a/libc/src/math/amdgpu/hypotf.cpp
+++ b/libc/src/math/amdgpu/hypotf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, hypotf, (float x, float y)) {
return __ocml_hypot_f32(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/ilogb.cpp b/libc/src/math/amdgpu/ilogb.cpp
index 4479908..37f24df 100644
--- a/libc/src/math/amdgpu/ilogb.cpp
+++ b/libc/src/math/amdgpu/ilogb.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, ilogb, (double x)) { return __ocml_ilogb_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/ilogbf.cpp b/libc/src/math/amdgpu/ilogbf.cpp
index cded285..56e74e1 100644
--- a/libc/src/math/amdgpu/ilogbf.cpp
+++ b/libc/src/math/amdgpu/ilogbf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, ilogbf, (float x)) { return __ocml_ilogb_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/ldexp.cpp b/libc/src/math/amdgpu/ldexp.cpp
index 70c5b0d..393eabb 100644
--- a/libc/src/math/amdgpu/ldexp.cpp
+++ b/libc/src/math/amdgpu/ldexp.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, ldexp, (double x, int y)) {
return __builtin_ldexp(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/ldexpf.cpp b/libc/src/math/amdgpu/ldexpf.cpp
index 8dc7c13..970603d 100644
--- a/libc/src/math/amdgpu/ldexpf.cpp
+++ b/libc/src/math/amdgpu/ldexpf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, ldexpf, (float x, int y)) {
return __builtin_ldexpf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/llrint.cpp b/libc/src/math/amdgpu/llrint.cpp
index 307420a..21129fe 100644
--- a/libc/src/math/amdgpu/llrint.cpp
+++ b/libc/src/math/amdgpu/llrint.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(long long, llrint, (double x)) {
return static_cast<long long>(__builtin_rint(x));
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/llrintf.cpp b/libc/src/math/amdgpu/llrintf.cpp
index 2340499..a6f9f43 100644
--- a/libc/src/math/amdgpu/llrintf.cpp
+++ b/libc/src/math/amdgpu/llrintf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(long long, llrintf, (float x)) {
return static_cast<long long>(__builtin_rintf(x));
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log.cpp b/libc/src/math/amdgpu/log.cpp
index 3f24895..bd01adf 100644
--- a/libc/src/math/amdgpu/log.cpp
+++ b/libc/src/math/amdgpu/log.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, log, (double x)) { return __ocml_log_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log10.cpp b/libc/src/math/amdgpu/log10.cpp
index d522d5e..75957c9 100644
--- a/libc/src/math/amdgpu/log10.cpp
+++ b/libc/src/math/amdgpu/log10.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, log10, (double x)) { return __ocml_log10_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log10f.cpp b/libc/src/math/amdgpu/log10f.cpp
index 47b9b16..9c12d6b 100644
--- a/libc/src/math/amdgpu/log10f.cpp
+++ b/libc/src/math/amdgpu/log10f.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, log10f, (float x)) { return __ocml_log10_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log1p.cpp b/libc/src/math/amdgpu/log1p.cpp
index fae60e4..fc27519 100644
--- a/libc/src/math/amdgpu/log1p.cpp
+++ b/libc/src/math/amdgpu/log1p.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, log1p, (double x)) { return __ocml_log1p_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log1pf.cpp b/libc/src/math/amdgpu/log1pf.cpp
index e7b17721..b2d26fb 100644
--- a/libc/src/math/amdgpu/log1pf.cpp
+++ b/libc/src/math/amdgpu/log1pf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, log1pf, (float x)) { return __ocml_log1p_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log2.cpp b/libc/src/math/amdgpu/log2.cpp
index 9d84f62..73f34b6 100644
--- a/libc/src/math/amdgpu/log2.cpp
+++ b/libc/src/math/amdgpu/log2.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, log2, (double x)) { return __ocml_log2_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/log2f.cpp b/libc/src/math/amdgpu/log2f.cpp
index 7742a61..3b62eda 100644
--- a/libc/src/math/amdgpu/log2f.cpp
+++ b/libc/src/math/amdgpu/log2f.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, log2f, (float x)) { return __ocml_log2_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/logb.cpp b/libc/src/math/amdgpu/logb.cpp
index 1344fbb..4b68e28 100644
--- a/libc/src/math/amdgpu/logb.cpp
+++ b/libc/src/math/amdgpu/logb.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, logb, (double x)) { return __ocml_logb_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/logbf.cpp b/libc/src/math/amdgpu/logbf.cpp
index fdb493f..bc7c462 100644
--- a/libc/src/math/amdgpu/logbf.cpp
+++ b/libc/src/math/amdgpu/logbf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, logbf, (float x)) { return __ocml_logb_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/logf.cpp b/libc/src/math/amdgpu/logf.cpp
index d4d4b26..1792567 100644
--- a/libc/src/math/amdgpu/logf.cpp
+++ b/libc/src/math/amdgpu/logf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, logf, (float x)) { return __ocml_log_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/lrint.cpp b/libc/src/math/amdgpu/lrint.cpp
index b335b4f..715b552 100644
--- a/libc/src/math/amdgpu/lrint.cpp
+++ b/libc/src/math/amdgpu/lrint.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(long, lrint, (double x)) {
return static_cast<long>(__builtin_rint(x));
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/lrintf.cpp b/libc/src/math/amdgpu/lrintf.cpp
index 7959e76..3870638 100644
--- a/libc/src/math/amdgpu/lrintf.cpp
+++ b/libc/src/math/amdgpu/lrintf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(long, lrintf, (float x)) {
return static_cast<long>(__builtin_rintf(x));
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/nearbyint.cpp b/libc/src/math/amdgpu/nearbyint.cpp
index 9c7b600..7d78c72 100644
--- a/libc/src/math/amdgpu/nearbyint.cpp
+++ b/libc/src/math/amdgpu/nearbyint.cpp
@@ -8,11 +8,12 @@
#include "src/math/nearbyint.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, nearbyint, (double x)) {
return __builtin_nearbyint(x);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/nearbyintf.cpp b/libc/src/math/amdgpu/nearbyintf.cpp
index 7fbe9f4..4bd20dc 100644
--- a/libc/src/math/amdgpu/nearbyintf.cpp
+++ b/libc/src/math/amdgpu/nearbyintf.cpp
@@ -8,11 +8,12 @@
#include "src/math/nearbyintf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, nearbyintf, (float x)) {
return __builtin_nearbyintf(x);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/nextafter.cpp b/libc/src/math/amdgpu/nextafter.cpp
index 5c74ef1..226b8a5 100644
--- a/libc/src/math/amdgpu/nextafter.cpp
+++ b/libc/src/math/amdgpu/nextafter.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, nextafter, (double x, double y)) {
return __ocml_nextafter_f64(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/nextafterf.cpp b/libc/src/math/amdgpu/nextafterf.cpp
index a97b990..7bed2c1 100644
--- a/libc/src/math/amdgpu/nextafterf.cpp
+++ b/libc/src/math/amdgpu/nextafterf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, nextafterf, (float x, float y)) {
return __ocml_nextafter_f32(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/platform.h b/libc/src/math/amdgpu/platform.h
index 29d6cac..472a983 100644
--- a/libc/src/math/amdgpu/platform.h
+++ b/libc/src/math/amdgpu/platform.h
@@ -10,10 +10,11 @@
#define LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
#include "src/__support/macros/attributes.h"
+#include "src/__support/macros/config.h"
#include <stdint.h>
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
// The ROCm device library uses control globals to alter codegen for the
// different targets. To avoid needing to link them in manually we simply
@@ -49,6 +50,6 @@ extern const LIBC_INLINE_VAR uint32_t __oclc_ISA_version = 9000;
[[gnu::alias("__oclc_finite_only_opt")]] const uint8_t __oclc_finite_only_opt__;
[[gnu::alias("__oclc_ISA_version")]] const uint32_t __oclc_ISA_version__;
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
diff --git a/libc/src/math/amdgpu/pow.cpp b/libc/src/math/amdgpu/pow.cpp
index e5056f6..979ad6c 100644
--- a/libc/src/math/amdgpu/pow.cpp
+++ b/libc/src/math/amdgpu/pow.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, pow, (double x, double y)) {
return __ocml_pow_f64(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/powf.cpp b/libc/src/math/amdgpu/powf.cpp
index 6114bcc..6931934 100644
--- a/libc/src/math/amdgpu/powf.cpp
+++ b/libc/src/math/amdgpu/powf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) {
return __ocml_pow_f32(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/powi.cpp b/libc/src/math/amdgpu/powi.cpp
index b13cb52..6b31b47 100644
--- a/libc/src/math/amdgpu/powi.cpp
+++ b/libc/src/math/amdgpu/powi.cpp
@@ -8,13 +8,14 @@
#include "src/math/powi.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "declarations.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, powi, (double x, int y)) {
return __ocml_pown_f64(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/powif.cpp b/libc/src/math/amdgpu/powif.cpp
index 7682f0e..94f8a91 100644
--- a/libc/src/math/amdgpu/powif.cpp
+++ b/libc/src/math/amdgpu/powif.cpp
@@ -8,13 +8,14 @@
#include "src/math/powif.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "declarations.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, powif, (float x, int y)) {
return __ocml_pown_f32(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/remainder.cpp b/libc/src/math/amdgpu/remainder.cpp
index 89b235f..9027204 100644
--- a/libc/src/math/amdgpu/remainder.cpp
+++ b/libc/src/math/amdgpu/remainder.cpp
@@ -8,11 +8,12 @@
#include "src/math/remainder.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, remainder, (double x, double y)) {
return __builtin_remainder(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/remainderf.cpp b/libc/src/math/amdgpu/remainderf.cpp
index 9fee6f8..50df3b2 100644
--- a/libc/src/math/amdgpu/remainderf.cpp
+++ b/libc/src/math/amdgpu/remainderf.cpp
@@ -8,11 +8,12 @@
#include "src/math/remainderf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, remainderf, (float x, float y)) {
return __builtin_remainderf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/remquo.cpp b/libc/src/math/amdgpu/remquo.cpp
index d8074a9..42c908e 100644
--- a/libc/src/math/amdgpu/remquo.cpp
+++ b/libc/src/math/amdgpu/remquo.cpp
@@ -10,8 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, remquo, (double x, double y, int *quo)) {
int tmp;
@@ -20,4 +21,4 @@ LLVM_LIBC_FUNCTION(double, remquo, (double x, double y, int *quo)) {
return r;
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/remquof.cpp b/libc/src/math/amdgpu/remquof.cpp
index b6584df..854d3bf 100644
--- a/libc/src/math/amdgpu/remquof.cpp
+++ b/libc/src/math/amdgpu/remquof.cpp
@@ -10,8 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, remquof, (float x, float y, int *quo)) {
int tmp;
@@ -20,4 +21,4 @@ LLVM_LIBC_FUNCTION(float, remquof, (float x, float y, int *quo)) {
return r;
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/rint.cpp b/libc/src/math/amdgpu/rint.cpp
index 44d494a..ac6837a 100644
--- a/libc/src/math/amdgpu/rint.cpp
+++ b/libc/src/math/amdgpu/rint.cpp
@@ -8,9 +8,10 @@
#include "src/math/rint.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, rint, (double x)) { return __builtin_rint(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/rintf.cpp b/libc/src/math/amdgpu/rintf.cpp
index daf98d9..9409347 100644
--- a/libc/src/math/amdgpu/rintf.cpp
+++ b/libc/src/math/amdgpu/rintf.cpp
@@ -8,9 +8,10 @@
#include "src/math/rintf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, rintf, (float x)) { return __builtin_rintf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/round.cpp b/libc/src/math/amdgpu/round.cpp
index 9d8b558..0d2765f 100644
--- a/libc/src/math/amdgpu/round.cpp
+++ b/libc/src/math/amdgpu/round.cpp
@@ -8,9 +8,10 @@
#include "src/math/round.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, round, (double x)) { return __builtin_round(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/roundf.cpp b/libc/src/math/amdgpu/roundf.cpp
index 8743e4e..86e8ba3 100644
--- a/libc/src/math/amdgpu/roundf.cpp
+++ b/libc/src/math/amdgpu/roundf.cpp
@@ -8,9 +8,10 @@
#include "src/math/roundf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, roundf, (float x)) { return __builtin_roundf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/scalbn.cpp b/libc/src/math/amdgpu/scalbn.cpp
index c2a43e0..05bbbc6 100644
--- a/libc/src/math/amdgpu/scalbn.cpp
+++ b/libc/src/math/amdgpu/scalbn.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, scalbn, (double x, int y)) {
return __builtin_amdgcn_ldexp(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/scalbnf.cpp b/libc/src/math/amdgpu/scalbnf.cpp
index 63de26c..f0e9e47 100644
--- a/libc/src/math/amdgpu/scalbnf.cpp
+++ b/libc/src/math/amdgpu/scalbnf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, scalbnf, (float x, int y)) {
return __builtin_amdgcn_ldexpf(x, y);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sin.cpp b/libc/src/math/amdgpu/sin.cpp
index dbc29a7..f3d88af 100644
--- a/libc/src/math/amdgpu/sin.cpp
+++ b/libc/src/math/amdgpu/sin.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, sin, (double x)) { return __ocml_sin_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sincos.cpp b/libc/src/math/amdgpu/sincos.cpp
index 7cdd0d1..304ac0c 100644
--- a/libc/src/math/amdgpu/sincos.cpp
+++ b/libc/src/math/amdgpu/sincos.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(void, sincos, (double x, double *sinptr, double *cosptr)) {
*sinptr = __ocml_sincos_f64(x, cosptr);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sincosf.cpp b/libc/src/math/amdgpu/sincosf.cpp
index 37a5e2a..1c4e9c6 100644
--- a/libc/src/math/amdgpu/sincosf.cpp
+++ b/libc/src/math/amdgpu/sincosf.cpp
@@ -10,11 +10,12 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinptr, float *cosptr)) {
*sinptr = __ocml_sincos_f32(x, cosptr);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sinf.cpp b/libc/src/math/amdgpu/sinf.cpp
index cda2c62..c6d64a6 100644
--- a/libc/src/math/amdgpu/sinf.cpp
+++ b/libc/src/math/amdgpu/sinf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, sinf, (float x)) { return __ocml_sin_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sinh.cpp b/libc/src/math/amdgpu/sinh.cpp
index 66cacd1..26314f4 100644
--- a/libc/src/math/amdgpu/sinh.cpp
+++ b/libc/src/math/amdgpu/sinh.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, sinh, (double x)) { return __ocml_sinh_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sinhf.cpp b/libc/src/math/amdgpu/sinhf.cpp
index 5d3f5ea..a4eb8e1 100644
--- a/libc/src/math/amdgpu/sinhf.cpp
+++ b/libc/src/math/amdgpu/sinhf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, sinhf, (float x)) { return __ocml_sinh_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sqrt.cpp b/libc/src/math/amdgpu/sqrt.cpp
index 60ca5af..ed83b6e 100644
--- a/libc/src/math/amdgpu/sqrt.cpp
+++ b/libc/src/math/amdgpu/sqrt.cpp
@@ -8,9 +8,10 @@
#include "src/math/sqrt.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, sqrt, (double x)) { return __builtin_sqrt(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/sqrtf.cpp b/libc/src/math/amdgpu/sqrtf.cpp
index e17f942..851922c 100644
--- a/libc/src/math/amdgpu/sqrtf.cpp
+++ b/libc/src/math/amdgpu/sqrtf.cpp
@@ -8,9 +8,10 @@
#include "src/math/sqrtf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, sqrtf, (float x)) { return __builtin_sqrtf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/tan.cpp b/libc/src/math/amdgpu/tan.cpp
index 6121a93..c946dc2 100644
--- a/libc/src/math/amdgpu/tan.cpp
+++ b/libc/src/math/amdgpu/tan.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, tan, (double x)) { return __ocml_tan_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/tanf.cpp b/libc/src/math/amdgpu/tanf.cpp
index fdd83ee..8c93fc4 100644
--- a/libc/src/math/amdgpu/tanf.cpp
+++ b/libc/src/math/amdgpu/tanf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, tanf, (float x)) { return __ocml_tan_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/tanh.cpp b/libc/src/math/amdgpu/tanh.cpp
index 25a9c29..834353e 100644
--- a/libc/src/math/amdgpu/tanh.cpp
+++ b/libc/src/math/amdgpu/tanh.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __ocml_tanh_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/tanhf.cpp b/libc/src/math/amdgpu/tanhf.cpp
index a4bfd20..5029596 100644
--- a/libc/src/math/amdgpu/tanhf.cpp
+++ b/libc/src/math/amdgpu/tanhf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, tanhf, (float x)) { return __ocml_tanh_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/tgamma.cpp b/libc/src/math/amdgpu/tgamma.cpp
index 10f58d5..485a6a3 100644
--- a/libc/src/math/amdgpu/tgamma.cpp
+++ b/libc/src/math/amdgpu/tgamma.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, tgamma, (double x)) { return __ocml_tgamma_f64(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/tgammaf.cpp b/libc/src/math/amdgpu/tgammaf.cpp
index e7d2205..e48a486 100644
--- a/libc/src/math/amdgpu/tgammaf.cpp
+++ b/libc/src/math/amdgpu/tgammaf.cpp
@@ -10,9 +10,10 @@
#include "src/__support/common.h"
#include "declarations.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, tgammaf, (float x)) { return __ocml_tgamma_f32(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/trunc.cpp b/libc/src/math/amdgpu/trunc.cpp
index 773600f..f60caa2 100644
--- a/libc/src/math/amdgpu/trunc.cpp
+++ b/libc/src/math/amdgpu/trunc.cpp
@@ -8,9 +8,10 @@
#include "src/math/trunc.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, trunc, (double x)) { return __builtin_trunc(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/amdgpu/truncf.cpp b/libc/src/math/amdgpu/truncf.cpp
index 534797a..a6c9b8f 100644
--- a/libc/src/math/amdgpu/truncf.cpp
+++ b/libc/src/math/amdgpu/truncf.cpp
@@ -8,9 +8,10 @@
#include "src/math/truncf.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(float, truncf, (float x)) { return __builtin_truncf(x); }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL