[libc-commits] [libc] [libc][CPP] correct cmpxchg failure ordering inference (PR #133127)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Mar 26 11:23:58 PDT 2025


================
@@ -402,6 +408,10 @@ LIBC_INLINE void atomic_signal_fence([[maybe_unused]] MemoryOrder mem_ord) {
   asm volatile("" ::: "memory");
 #endif
 }
+} // namespace atomic
+
+using atomic::Atomic;
----------------
jhuber6 wrote:

Put the utils in a `namespace impl {...}` instead, that's clearer but requires changing the usage.

https://github.com/llvm/llvm-project/pull/133127


More information about the libc-commits mailing list