[libc-commits] [libc] [libc] Replace usage of GPU helpers with ones from 'gpuintrin.h' (PR #116454)
Shilei Tian via libc-commits
libc-commits at lists.llvm.org
Fri Nov 15 20:01:51 PST 2024
================
@@ -30,6 +28,17 @@
namespace LIBC_NAMESPACE_DECL {
namespace rpc {
+/// Use scoped atomic variants if they are available for the target.
+#if !__has_builtin(__scoped_atomic_load_n)
+#define __scoped_atomic_load_n(src, ord, scp) __atomic_load_n(src, ord)
----------------
shiltian wrote:
you might want to guard all the arguments with `()`?
https://github.com/llvm/llvm-project/pull/116454
More information about the libc-commits
mailing list