builtin_12_atomic_fetch_or.c (177B)
1 int test_main(void) { 2 int x = 0x20; /* 0010 0000 */ 3 int prior = __atomic_fetch_or(&x, 0x0A, __ATOMIC_ACQUIRE); 4 /* prior=0x20=32, x=0x2A=42 */ 5 (void)prior; 6 return x; 7 }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |