From 4046773c41ee3c0f65840828ab983cfd13451c85 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 26 Jun 2018 12:15:31 +0200 Subject: compat/macros: remove incorrect membar The memory barrier impl for GNU was incorrect since it didn't prevent CPU reordering. It only prevented compiler reordering. --- compat/macros.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compat/macros.hpp b/compat/macros.hpp index 57883827..761da0b1 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -1,11 +1,5 @@ #pragma once -#if defined _MSC_VER -# define MEMORY_BARRIER() _ReadWriteBarrier() -#else -# define MEMORY_BARRIER() asm volatile("" ::: "memory") -#endif - #if defined _MSC_VER # define cc_noinline __declspec(noinline) #elif defined __GNUG__ -- cgit v1.2.3