summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-10-20 10:17:26 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-11-15 10:03:05 +0300
commit90b1b87aed672c4605ddb6914296730f528944c6 (patch)
treef0e34fcbe89d1e324c97cd1a3069570bb1098ee8
parent76ebe95c4cc54bd876e24f92a3d6ee3bc3e694d7 (diff)
downloadlibatomic_ops-90b1b87aed672c4605ddb6914296730f528944c6.tar.gz
Do not assume 'ordered except earlier write' for UWP/arm64
(fix of commit e078c7bb7) * src/atomic_ops/sysdeps/msftc/x86_64.h: Do not include ordered_except_wr.h if _M_ARM64.
-rw-r--r--src/atomic_ops/sysdeps/msftc/x86_64.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atomic_ops/sysdeps/msftc/x86_64.h b/src/atomic_ops/sysdeps/msftc/x86_64.h
index 2bbc3fd..15642f8 100644
--- a/src/atomic_ops/sysdeps/msftc/x86_64.h
+++ b/src/atomic_ops/sysdeps/msftc/x86_64.h
@@ -22,14 +22,15 @@
#include "../all_aligned_atomic_load_store.h"
+#if !defined(_M_ARM64)
/* Real X86 implementations appear */
/* to enforce ordering between memory operations, EXCEPT that a later */
/* read can pass earlier writes, presumably due to the visible */
/* presence of store buffers. */
/* We ignore the fact that the official specs */
/* seem to be much weaker (and arguably too weak to be usable). */
-
#include "../ordered_except_wr.h"
+#endif
#ifdef AO_ASM_X64_AVAILABLE
# include "../test_and_set_t_is_char.h"