Lines Matching refs:ptr2
442 void failureOrder(_Atomic(int) *ptr, int *ptr2) {
443 __c11_atomic_compare_exchange_strong(ptr, ptr2, 43, memory_order_acquire, memory_order_relaxed);
446 __c11_atomic_compare_exchange_weak(ptr, ptr2, 43, memory_order_seq_cst, memory_order_acquire);
450 __atomic_compare_exchange(ptr2, ptr2, ptr2, 0, memory_order_acq_rel, *ptr2);
455 __atomic_compare_exchange_n(ptr2, ptr2, 43, 1, memory_order_seq_cst, 42);
460 void generalFailureOrder(_Atomic(int) *ptr, int *ptr2, int success, int fail) {
461 __c11_atomic_compare_exchange_strong(ptr, ptr2, 42, success, fail);
529 void generalWeakness(int *ptr, int *ptr2, _Bool weak) {
530 __atomic_compare_exchange_n(ptr, ptr2, 42, weak, memory_order_seq_cst, memory_order_seq_cst);
547 void EMIT_ALL_THE_THINGS(int *ptr, int *ptr2, int new, _Bool weak, int success, int fail) {
548 __atomic_compare_exchange(ptr, ptr2, &new, weak, success, fail);