kit

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

i128_04_mul_high_half.c (225B)


      1 typedef unsigned __int128 u128;
      2 
      3 int test_main(void) {
      4   u128 a = (u128)0x100000000ULL;
      5   u128 b = a * a;
      6   if ((unsigned long long)b != 0ULL) return 11;
      7   if ((unsigned long long)(b >> 64) != 1ULL) return 12;
      8   return 31;
      9 }