summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-11-21 19:18:07 +0200
committerTal Hayon <talhayon1@gmail.com>2022-11-21 19:18:07 +0200
commit44e4b69cdbf2925ae82fe6e6a7336b8ba90b67f0 (patch)
treee9f679da3a024029733a6dfd1e5897c930aa4dc3 /include
parentbf9df148326971550dc58c65e5e9dd5c7f734228 (diff)
Matches from site(Henny022p,octorock,Léo Lam,ThothWhatsThis)
Diffstat (limited to 'include')
-rw-r--r--include/global.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 94d19c8f..9b3557ce 100644
--- a/include/global.h
+++ b/include/global.h
@@ -101,6 +101,12 @@
#define FORCE_REGISTER(var, reg) register var asm(#reg)
#endif
+#if NON_MATCHING
+#define MEMORY_BARRIER
+#else
+#define MEMORY_BARRIER asm("" ::: "memory")
+#endif
+
typedef union {
s32 WORD;
struct {