kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

builtin_14_atomic_long.c (192B)


      1 int test_main(void) {
      2   long x = 1000000000L;
      3   long y = __atomic_fetch_add(&x, 5L, __ATOMIC_SEQ_CST);
      4   /* y was 1e9; x is 1e9+5. Subtract to fit i32 result. */
      5   return (int)(x - y) + 37;
      6 }