9#ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
10#define ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
43 return __atomic_compare_exchange_n(target, &old_value, new_value,
67 return __atomic_compare_exchange_n(target, &old_value, new_value,
88 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST);
107 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST);
161 return __atomic_load_n(target, __ATOMIC_SEQ_CST);
179 return __atomic_load_n(target, __ATOMIC_SEQ_CST);
203 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST);
223 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST);
281 return __atomic_fetch_or(target, value, __ATOMIC_SEQ_CST);
301 return __atomic_fetch_xor(target, value, __ATOMIC_SEQ_CST);
321 return __atomic_fetch_and(target, value, __ATOMIC_SEQ_CST);
341 return __atomic_fetch_nand(target, value, __ATOMIC_SEQ_CST);
long atomic_t
Definition: atomic.h:22
atomic_t atomic_val_t
Definition: atomic.h:23
atomic_ptr_t atomic_ptr_val_t
Definition: atomic.h:25
void * atomic_ptr_t
Definition: atomic.h:24
static atomic_val_t atomic_dec(atomic_t *target)
Atomic decrement.
Definition: atomic_builtin.h:141
static atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value)
Atomic subtraction.
Definition: atomic_builtin.h:105
static atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value)
Atomic bitwise exclusive OR (XOR).
Definition: atomic_builtin.h:299
static bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, atomic_ptr_val_t new_value)
Atomic compare-and-set with pointer values.
Definition: atomic_builtin.h:64
static atomic_val_t atomic_clear(atomic_t *target)
Atomic clear.
Definition: atomic_builtin.h:240
static atomic_val_t atomic_set(atomic_t *target, atomic_val_t value)
Atomic get-and-set.
Definition: atomic_builtin.h:197
static atomic_val_t atomic_inc(atomic_t *target)
Atomic increment.
Definition: atomic_builtin.h:123
static bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value)
Atomic compare-and-set.
Definition: atomic_builtin.h:40
static atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target)
Atomic clear of a pointer value.
Definition: atomic_builtin.h:259
static atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target)
Atomic get a pointer value.
Definition: atomic_builtin.h:177
static atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value)
Atomic bitwise NAND.
Definition: atomic_builtin.h:339
static atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value)
Atomic get-and-set for pointer values.
Definition: atomic_builtin.h:221
static atomic_val_t atomic_or(atomic_t *target, atomic_val_t value)
Atomic bitwise inclusive OR.
Definition: atomic_builtin.h:279
static atomic_val_t atomic_and(atomic_t *target, atomic_val_t value)
Atomic bitwise AND.
Definition: atomic_builtin.h:319
static atomic_val_t atomic_get(const atomic_t *target)
Atomic get.
Definition: atomic_builtin.h:159
static atomic_val_t atomic_add(atomic_t *target, atomic_val_t value)
Atomic addition.
Definition: atomic_builtin.h:86