summaryrefslogtreecommitdiffhomepage
path: root/compat/macros.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 12:15:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commit4046773c41ee3c0f65840828ab983cfd13451c85 (patch)
tree5ae8d69a05fdfa16303dc4cc1b1bf3c090540ab1 /compat/macros.hpp
parenta14eb45008af04bb262e80fd399d60394ae74e53 (diff)
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.
Diffstat (limited to 'compat/macros.hpp')
-rw-r--r--compat/macros.hpp6
1 files changed, 0 insertions, 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,12 +1,6 @@
#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__
# define cc_noinline __attribute__((noinline))