From 6786bcaaf5c87a60aeb6cbc48edc9015b003ee7e Mon Sep 17 00:00:00 2001 From: Exverge Date: Thu, 4 Jul 2024 18:14:09 -0400 Subject: [PATCH] Implement _mm_mfence for aarch64 --- src/Common/precompiled.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Common/precompiled.h b/src/Common/precompiled.h index 790a001a..2abb0fe0 100644 --- a/src/Common/precompiled.h +++ b/src/Common/precompiled.h @@ -291,7 +291,8 @@ inline uint64 __rdtsc() inline void _mm_mfence() { - + asm volatile("" ::: "memory"); + std::atomic_thread_fence(std::memory_order_seq_cst); } inline unsigned char _addcarry_u64(unsigned char carry, unsigned long long a, unsigned long long b, unsigned long long *result)