summaryrefslogtreecommitdiff
path: root/kern/atomic.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-02 20:33:39 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-02 20:33:39 +0200
commitfa70af2fcc24f8e5aa88a37407d30ca24cc8bf2c (patch)
tree51d1ecd674098919ceaee8e27cc08a327ac923ed /kern/atomic.h
parentf8f72fe735799b0f464c1036513aacd8a442af6e (diff)
kern/atomic: update shortcut macros
Diffstat (limited to 'kern/atomic.h')
-rw-r--r--kern/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/atomic.h b/kern/atomic.h
index 75b07012..63f0ac73 100644
--- a/kern/atomic.h
+++ b/kern/atomic.h
@@ -116,6 +116,9 @@ MACRO_END
* Common shortcuts.
*/
+#define atomic_load_acquire(ptr) atomic_load(ptr, ATOMIC_ACQUIRE)
+#define atomic_store_release(ptr, val) atomic_store(ptr, val, ATOMIC_RELEASE)
+
#define atomic_cas_acquire(ptr, oval, nval) \
atomic_cas(ptr, oval, nval, ATOMIC_ACQUIRE)
@@ -129,9 +132,6 @@ MACRO_END
#define atomic_swap_release(ptr, val) atomic_swap(ptr, val, ATOMIC_RELEASE)
#define atomic_swap_acq_rel(ptr, val) atomic_swap(ptr, val, ATOMIC_ACQ_REL)
-#define atomic_fetch_add_acq_rel(ptr, val) \
- atomic_fetch_add(ptr, val, ATOMIC_ACQ_REL)
-
#define atomic_fetch_sub_acq_rel(ptr, val) \
atomic_fetch_sub(ptr, val, ATOMIC_ACQ_REL)