MT#55283 add convenience atomic_inc_na

Change-Id: Iddeef2a6fe8b29dff3e6975fb2f27cec0a12bbc6
pull/1826/head
Richard Fuchs 2 years ago
parent a56deffe9a
commit 376d61bddb

@ -592,6 +592,7 @@ INLINE double atomic64_div(const atomic64 *n, const atomic64 *d) {
#define atomic_get_na(x) __atomic_load_n(x, __ATOMIC_RELAXED)
#define atomic_set_na(x,y) __atomic_store_n(x, y, __ATOMIC_RELAXED)
#define atomic_inc_na(x) __atomic_fetch_add(x, 1, __ATOMIC_RELAXED);
/*** ATOMIC BITFIELD OPERATIONS ***/

Loading…
Cancel
Save