9#ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
10#define ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
40 return __atomic_compare_exchange_n(
target, &old_value, new_value,
61 return __atomic_compare_exchange_n(
target, &old_value, new_value,
79 return __atomic_fetch_add(
target, value, __ATOMIC_SEQ_CST);
95 return __atomic_fetch_sub(
target, value, __ATOMIC_SEQ_CST);
140 return __atomic_load_n(
target, __ATOMIC_SEQ_CST);
155 return __atomic_load_n(
target, __ATOMIC_SEQ_CST);
176 return __atomic_exchange_n(
target, value, __ATOMIC_SEQ_CST);
193 return __atomic_exchange_n(
target, value, __ATOMIC_SEQ_CST);
242 return __atomic_fetch_or(
target, value, __ATOMIC_SEQ_CST);
259 return __atomic_fetch_xor(
target, value, __ATOMIC_SEQ_CST);
276 return __atomic_fetch_and(
target, value, __ATOMIC_SEQ_CST);
293 return __atomic_fetch_nand(
target, value, __ATOMIC_SEQ_CST);
atomic_t atomic_val_t
Definition: atomic.h:22
atomic_ptr_t atomic_ptr_val_t
Definition: atomic.h:24
void * atomic_ptr_t
Definition: atomic.h:23
int atomic_t
Definition: atomic.h:21
static atomic_val_t atomic_dec(atomic_t *target)
Atomic decrement.
Definition: atomic_builtin.h:123
static atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value)
Atomic subtraction.
Definition: atomic_builtin.h:93
static atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value)
Atomic bitwise exclusive OR (XOR).
Definition: atomic_builtin.h:257
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:58
static atomic_val_t atomic_clear(atomic_t *target)
Atomic clear.
Definition: atomic_builtin.h:207
static atomic_val_t atomic_set(atomic_t *target, atomic_val_t value)
Atomic get-and-set.
Definition: atomic_builtin.h:170
static atomic_val_t atomic_inc(atomic_t *target)
Atomic increment.
Definition: atomic_builtin.h:108
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:37
static atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target)
Atomic clear of a pointer value.
Definition: atomic_builtin.h:223
static atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target)
Atomic get a pointer value.
Definition: atomic_builtin.h:153
static atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value)
Atomic bitwise NAND.
Definition: atomic_builtin.h:291
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:191
static atomic_val_t atomic_or(atomic_t *target, atomic_val_t value)
Atomic bitwise inclusive OR.
Definition: atomic_builtin.h:240
static atomic_val_t atomic_and(atomic_t *target, atomic_val_t value)
Atomic bitwise AND.
Definition: atomic_builtin.h:274
static atomic_val_t atomic_get(const atomic_t *target)
Atomic get.
Definition: atomic_builtin.h:138
static atomic_val_t atomic_add(atomic_t *target, atomic_val_t value)
Atomic addition.
Definition: atomic_builtin.h:77
int target
Definition: main.c:68