Lines Matching refs:operand
124 static inline intptr_t atomic_fetch_add(intptr_t *object, intptr_t operand)
126 return atomic_add_ptr_nv(object, operand) - operand;
129 #define atomic_fetch_sub(object, operand) \
130 atomic_fetch_add(object, -(operand))
132 static inline intptr_t atomic_fetch_or(intptr_t *object, intptr_t operand)
137 } while (!atomic_compare_exchange_strong(object, old, old | operand));
141 static inline intptr_t atomic_fetch_xor(intptr_t *object, intptr_t operand)
146 } while (!atomic_compare_exchange_strong(object, old, old ^ operand));
150 static inline intptr_t atomic_fetch_and(intptr_t *object, intptr_t operand)
155 } while (!atomic_compare_exchange_strong(object, old, old & operand));
159 #define atomic_fetch_add_explicit(object, operand, order) \
160 atomic_fetch_add(object, operand)
162 #define atomic_fetch_sub_explicit(object, operand, order) \
163 atomic_fetch_sub(object, operand)
165 #define atomic_fetch_or_explicit(object, operand, order) \
166 atomic_fetch_or(object, operand)
168 #define atomic_fetch_xor_explicit(object, operand, order) \
169 atomic_fetch_xor(object, operand)
171 #define atomic_fetch_and_explicit(object, operand, order) \
172 atomic_fetch_and(object, operand)