summaryrefslogtreecommitdiff
path: root/libc/src/__support/GPU
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/__support/GPU')
-rw-r--r--libc/src/__support/GPU/amdgpu/utils.h4
-rw-r--r--libc/src/__support/GPU/generic/utils.h4
-rw-r--r--libc/src/__support/GPU/nvptx/utils.h4
-rw-r--r--libc/src/__support/GPU/utils.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/libc/src/__support/GPU/amdgpu/utils.h b/libc/src/__support/GPU/amdgpu/utils.h
index f64ed796dc17..9f0ff0c717a6 100644
--- a/libc/src/__support/GPU/amdgpu/utils.h
+++ b/libc/src/__support/GPU/amdgpu/utils.h
@@ -14,7 +14,7 @@
#include <stdint.h>
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
namespace gpu {
/// The number of threads that execute in lock-step in a lane.
@@ -180,6 +180,6 @@ LIBC_INLINE uint64_t fixed_frequency_clock() {
[[noreturn]] LIBC_INLINE void end_program() { __builtin_amdgcn_endpgm(); }
} // namespace gpu
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE
#endif
diff --git a/libc/src/__support/GPU/generic/utils.h b/libc/src/__support/GPU/generic/utils.h
index af347580cca9..b701db482bbe 100644
--- a/libc/src/__support/GPU/generic/utils.h
+++ b/libc/src/__support/GPU/generic/utils.h
@@ -13,7 +13,7 @@
#include <stdint.h>
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
namespace gpu {
constexpr const uint64_t LANE_SIZE = 1;
@@ -76,6 +76,6 @@ LIBC_INLINE uint64_t fixed_frequency_clock() { return 0; }
[[noreturn]] LIBC_INLINE void end_program() { __builtin_unreachable(); }
} // namespace gpu
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE
#endif
diff --git a/libc/src/__support/GPU/nvptx/utils.h b/libc/src/__support/GPU/nvptx/utils.h
index 375af6ef10ac..1519f36850a6 100644
--- a/libc/src/__support/GPU/nvptx/utils.h
+++ b/libc/src/__support/GPU/nvptx/utils.h
@@ -13,7 +13,7 @@
#include <stdint.h>
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
namespace gpu {
/// The number of threads that execute in lock-step in a warp.
@@ -160,6 +160,6 @@ LIBC_INLINE uint64_t fixed_frequency_clock() {
}
} // namespace gpu
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE
#endif
diff --git a/libc/src/__support/GPU/utils.h b/libc/src/__support/GPU/utils.h
index d598996e0aa2..6505b18dbd33 100644
--- a/libc/src/__support/GPU/utils.h
+++ b/libc/src/__support/GPU/utils.h
@@ -19,7 +19,7 @@
#include "generic/utils.h"
#endif
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
namespace gpu {
/// Get the first active thread inside the lane.
LIBC_INLINE uint64_t get_first_lane_id(uint64_t lane_mask) {
@@ -32,6 +32,6 @@ LIBC_INLINE bool is_first_lane(uint64_t lane_mask) {
}
} // namespace gpu
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC___SUPPORT_OSUTIL_IO_H