tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [PATCH 2/3] stdatomic: memory models as macros


From: Dmitry Selyutin
Subject: [Tinycc-devel] [PATCH 2/3] stdatomic: memory models as macros
Date: Wed, 27 Jan 2021 13:38:31 +0300

---
 include/tccdefs.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/tccdefs.h b/include/tccdefs.h
index ae0364e..ba2a679 100644
--- a/include/tccdefs.h
+++ b/include/tccdefs.h
@@ -78,6 +78,13 @@
 #endif
     #endif

+    #define __ATOMIC_RELAXED 0
+    #define __ATOMIC_CONSUME 1
+    #define __ATOMIC_ACQUIRE 2
+    #define __ATOMIC_RELEASE 3
+    #define __ATOMIC_ACQ_REL 4
+    #define __ATOMIC_SEQ_CST 5
+
 #if defined _WIN32
     #define __declspec(x) __attribute__((x))
     #define __cdecl
--
2.30.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]