builtin_13_atomic_fetch_xor.c (186B)
1 int test_main(void) { 2 int x = 0x55; /* 0101 0101 = 85 */ 3 int prior = __atomic_fetch_xor(&x, 0x7F, __ATOMIC_SEQ_CST); 4 /* x = 0x55 ^ 0x7F = 0x2A = 42 */ 5 (void)prior; 6 return x; 7 }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |