10#ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
11#define ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_
26 return __atomic_compare_exchange_n(target, &old_value, new_value,
34 return __atomic_compare_exchange_n(target, &old_value, new_value,
41 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST);
46 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST);
61 return __atomic_load_n(target, __ATOMIC_SEQ_CST);
66 return __atomic_load_n(target, __ATOMIC_SEQ_CST);
75 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST);
80 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST);
95 return __atomic_fetch_or(target, value, __ATOMIC_SEQ_CST);
100 return __atomic_fetch_xor(target, value, __ATOMIC_SEQ_CST);
105 return __atomic_fetch_and(target, value, __ATOMIC_SEQ_CST);
110 return __atomic_fetch_nand(target, value, __ATOMIC_SEQ_CST);
static atomic_val_t atomic_dec(atomic_t *target)
Definition: atomic_builtin.h:54
static atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:44
static atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:98
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:31
static atomic_val_t atomic_clear(atomic_t *target)
Definition: atomic_builtin.h:83
static atomic_val_t atomic_set(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:69
static atomic_val_t atomic_inc(atomic_t *target)
Definition: atomic_builtin.h:49
static bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value)
Definition: atomic_builtin.h:23
static atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target)
Definition: atomic_builtin.h:88
static atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target)
Definition: atomic_builtin.h:64
static atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:108
static atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value)
Definition: atomic_builtin.h:78
static atomic_val_t atomic_or(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:93
static atomic_val_t atomic_and(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:103
static atomic_val_t atomic_get(const atomic_t *target)
Definition: atomic_builtin.h:59
static atomic_val_t atomic_add(atomic_t *target, atomic_val_t value)
Definition: atomic_builtin.h:39
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