10#ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
11#define ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
25 return __atomic_compare_exchange_n(target, &old_value, new_value,
33 return __atomic_compare_exchange_n(target, &old_value, new_value,
40 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST);
45 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST);
60 return __atomic_load_n(target, __ATOMIC_SEQ_CST);
65 return __atomic_load_n(target, __ATOMIC_SEQ_CST);
74 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST);
79 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST);
94 return __atomic_fetch_or(target, value, __ATOMIC_SEQ_CST);
99 return __atomic_fetch_xor(target, value, __ATOMIC_SEQ_CST);
104 return __atomic_fetch_and(target, value, __ATOMIC_SEQ_CST);
109 return __atomic_fetch_nand(target, value, __ATOMIC_SEQ_CST);
static atomic_val_t atomic_dec(atomic_t *target)
Definition: atomic_builtin.h:53
static atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:43
static atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:97
static bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, atomic_ptr_val_t new_value)
Definition: atomic_builtin.h:30
static atomic_val_t atomic_clear(atomic_t *target)
Definition: atomic_builtin.h:82
static atomic_val_t atomic_set(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:68
static atomic_val_t atomic_inc(atomic_t *target)
Definition: atomic_builtin.h:48
static bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value)
Definition: atomic_builtin.h:22
static atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target)
Definition: atomic_builtin.h:87
static atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target)
Definition: atomic_builtin.h:63
static atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:107
static atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value)
Definition: atomic_builtin.h:77
static atomic_val_t atomic_or(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:92
static atomic_val_t atomic_and(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:102
static atomic_val_t atomic_get(const atomic_t *target)
Definition: atomic_builtin.h:58
static atomic_val_t atomic_add(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:38
long atomic_t
Definition: atomic_types.h:15
atomic_t atomic_val_t
Definition: atomic_types.h:16
atomic_ptr_t atomic_ptr_val_t
Definition: atomic_types.h:18
void * atomic_ptr_t
Definition: atomic_types.h:17