We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c5b8c commit a73e924Copy full SHA for a73e924
libc/src/__support/CPP/atomic.h
@@ -166,7 +166,7 @@ LIBC_INLINE void atomic_thread_fence([[maybe_unused]] MemoryOrder mem_ord) {
166
// except no instructions for memory ordering are issued. Only reordering of
167
// the instructions by the compiler is suppressed as order instructs.
168
LIBC_INLINE void atomic_signal_fence([[maybe_unused]] MemoryOrder mem_ord) {
169
-#if __has_builtin(__atomic_signal_fence)
+#if LIBC_HAS_BUILTIN(__atomic_signal_fence)
170
__atomic_signal_fence(static_cast<int>(mem_ord));
171
#else
172
// if the builtin is not ready, use asm as a full compiler barrier.
0 commit comments