aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/acswap/test_swapd.c
blob: 4841f040d48412b29b08da11bfd0b06c73294b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

int main() {
  unsigned long long loc=10, next=12, current=11;
  union {
    __int128 i128;
    struct {
      unsigned long low, high;
    } i64_2;
  } ret;
  ret.i128 = __builtin_k1_acswapd(&loc, next, current);
  printf("%lx %lx\n", ret.i64_2.low, ret.i64_2.high);
}