kit

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

i128_11_union_lanes.c (318B)


      1 typedef unsigned __int128 u128;
      2 
      3 union U {
      4   u128 x;
      5   unsigned long long lane[2];
      6 };
      7 
      8 int test_main(void) {
      9   union U u;
     10   u.x = ((u128)0x0102030405060708ULL << 64) | (u128)0x1112131415161718ULL;
     11   if (u.lane[0] != 0x1112131415161718ULL) return 11;
     12   if (u.lane[1] != 0x0102030405060708ULL) return 12;
     13   return 55;
     14 }