Lines Matching refs:object
265 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
267 __c11_atomic_compare_exchange_strong(object, expected, desired, \
269 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
271 __c11_atomic_compare_exchange_weak(object, expected, desired, \
273 #define atomic_exchange_explicit(object, desired, order) \ argument
274 __c11_atomic_exchange(object, desired, order)
275 #define atomic_fetch_add_explicit(object, operand, order) \ argument
276 __c11_atomic_fetch_add(object, operand, order)
277 #define atomic_fetch_and_explicit(object, operand, order) \ argument
278 __c11_atomic_fetch_and(object, operand, order)
279 #define atomic_fetch_or_explicit(object, operand, order) \ argument
280 __c11_atomic_fetch_or(object, operand, order)
281 #define atomic_fetch_sub_explicit(object, operand, order) \ argument
282 __c11_atomic_fetch_sub(object, operand, order)
283 #define atomic_fetch_xor_explicit(object, operand, order) \ argument
284 __c11_atomic_fetch_xor(object, operand, order)
285 #define atomic_load_explicit(object, order) \ argument
286 __c11_atomic_load(object, order)
287 #define atomic_store_explicit(object, desired, order) \ argument
288 __c11_atomic_store(object, desired, order)
290 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
292 __atomic_compare_exchange_n(&(object)->__val, expected, \
294 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
296 __atomic_compare_exchange_n(&(object)->__val, expected, \
298 #define atomic_exchange_explicit(object, desired, order) \ argument
299 __atomic_exchange_n(&(object)->__val, desired, order)
300 #define atomic_fetch_add_explicit(object, operand, order) \ argument
301 __atomic_fetch_add(&(object)->__val, operand, order)
302 #define atomic_fetch_and_explicit(object, operand, order) \ argument
303 __atomic_fetch_and(&(object)->__val, operand, order)
304 #define atomic_fetch_or_explicit(object, operand, order) \ argument
305 __atomic_fetch_or(&(object)->__val, operand, order)
306 #define atomic_fetch_sub_explicit(object, operand, order) \ argument
307 __atomic_fetch_sub(&(object)->__val, operand, order)
308 #define atomic_fetch_xor_explicit(object, operand, order) \ argument
309 __atomic_fetch_xor(&(object)->__val, operand, order)
310 #define atomic_load_explicit(object, order) \ argument
311 __atomic_load_n(&(object)->__val, order)
312 #define atomic_store_explicit(object, desired, order) \ argument
313 __atomic_store_n(&(object)->__val, desired, order)
315 #define __atomic_apply_stride(object, operand) \ argument
316 (((__typeof__((object)->__val))0) + (operand))
317 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
322 (__Bool)((*__ep = __sync_val_compare_and_swap(&(object)->__val, \
325 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
327 atomic_compare_exchange_strong_explicit(object, expected, \
331 #define atomic_exchange_explicit(object, desired, order) \ argument
332 ((void)(order), __sync_swap(&(object)->__val, desired))
339 #define atomic_exchange_explicit(object, desired, order) \ argument
341 __typeof__(object) __o = (object); \
348 #define atomic_fetch_add_explicit(object, operand, order) \ argument
349 ((void)(order), __sync_fetch_and_add(&(object)->__val, \
350 __atomic_apply_stride(object, operand)))
351 #define atomic_fetch_and_explicit(object, operand, order) \ argument
352 ((void)(order), __sync_fetch_and_and(&(object)->__val, operand))
353 #define atomic_fetch_or_explicit(object, operand, order) \ argument
354 ((void)(order), __sync_fetch_and_or(&(object)->__val, operand))
355 #define atomic_fetch_sub_explicit(object, operand, order) \ argument
356 ((void)(order), __sync_fetch_and_sub(&(object)->__val, \
357 __atomic_apply_stride(object, operand)))
358 #define atomic_fetch_xor_explicit(object, operand, order) \ argument
359 ((void)(order), __sync_fetch_and_xor(&(object)->__val, operand))
360 #define atomic_load_explicit(object, order) \ argument
361 ((void)(order), __sync_fetch_and_add(&(object)->__val, 0))
362 #define atomic_store_explicit(object, desired, order) \ argument
363 ((void)atomic_exchange_explicit(object, desired, order))
374 #define atomic_compare_exchange_strong(object, expected, desired) \ argument
375 atomic_compare_exchange_strong_explicit(object, expected, \
377 #define atomic_compare_exchange_weak(object, expected, desired) \ argument
378 atomic_compare_exchange_weak_explicit(object, expected, \
380 #define atomic_exchange(object, desired) \ argument
381 atomic_exchange_explicit(object, desired, memory_order_seq_cst)
382 #define atomic_fetch_add(object, operand) \ argument
383 atomic_fetch_add_explicit(object, operand, memory_order_seq_cst)
384 #define atomic_fetch_and(object, operand) \ argument
385 atomic_fetch_and_explicit(object, operand, memory_order_seq_cst)
386 #define atomic_fetch_or(object, operand) \ argument
387 atomic_fetch_or_explicit(object, operand, memory_order_seq_cst)
388 #define atomic_fetch_sub(object, operand) \ argument
389 atomic_fetch_sub_explicit(object, operand, memory_order_seq_cst)
390 #define atomic_fetch_xor(object, operand) \ argument
391 atomic_fetch_xor_explicit(object, operand, memory_order_seq_cst)
392 #define atomic_load(object) \ argument
393 atomic_load_explicit(object, memory_order_seq_cst)
394 #define atomic_store(object, desired) \ argument
395 atomic_store_explicit(object, desired, memory_order_seq_cst)