summaryrefslogtreecommitdiff
path: root/include/al
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-01-07 16:47:09 -0500
committerAndrew Opalach <andrew@akon.city> 2024-01-07 16:47:09 -0500
commitfcb14be7bc6edf14afa7f026f2c60e54305e422b (patch)
tree9730bf04147ee88039123e36ee7a360506324785 /include/al
parentfb386097cd56ca2ee62aa815f60101470d7a5d5d (diff)
downloadlibalabaster-fcb14be7bc6edf14afa7f026f2c60e54305e422b.tar.gz
libalabaster-fcb14be7bc6edf14afa7f026f2c60e54305e422b.tar.bz2
libalabaster-fcb14be7bc6edf14afa7f026f2c60e54305e422b.zip
Add atomic_u64
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'include/al')
-rw-r--r--include/al/atomic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/al/atomic.h b/include/al/atomic.h
index 5a1b495..a74cf12 100644
--- a/include/al/atomic.h
+++ b/include/al/atomic.h
@@ -23,6 +23,10 @@
#define al_atomic_s64_load(p, order) ((s64)c89atomic_load_explicit_i64(p, order))
#define al_atomic_s64_store(p, v, order) c89atomic_store_explicit_i64(p, ((s64)v), order)
+#define atomic_u64 volatile c89atomic_uint64
+#define al_atomic_u64_load(p, order) ((u64)c89atomic_load_explicit_64(p, order))
+#define al_atomic_u64_store(p, v, order) c89atomic_store_explicit_64(p, ((u64)v), order)
+
#define atomic_f64 volatile f64
#define al_atomic_f64_load(p, order) ((f64)c89atomic_load_explicit_f64(p, order))
#define al_atomic_f64_store(p, v, order) c89atomic_store_explicit_f64(p, ((f64)v), order)