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.
2 parents 72ff115 + 74496f3 commit 5c8114dCopy full SHA for 5c8114d
include/swift/Runtime/Atomic.h
@@ -20,6 +20,9 @@
20
#include "swift/Runtime/Config.h"
21
#include <assert.h>
22
#include <atomic>
23
+#if defined(_WIN64)
24
+#include <intrin.h>
25
+#endif
26
27
// FIXME: Workaround for rdar://problem/18889711. 'Consume' does not require
28
// a barrier on ARM64, but LLVM doesn't know that. Although 'relaxed'
@@ -72,7 +75,6 @@ class alignas(Size) atomic_impl {
72
75
};
73
76
74
77
#if defined(_WIN64)
-#include <intrin.h>
78
79
/// MSVC's std::atomic uses an inline spin lock for 16-byte atomics,
80
/// which is not only unnecessarily inefficient but also doubles the size
0 commit comments