div128.c

davshao, 03/30/2010 04:21 PM

Download (204 Bytes)

 
1
#include <inttypes.h>
2
#include <stdio.h>
3

    
4
int main(void)
5
{
6
  __uint128_t num = 1000;
7
  __uint128_t denom = 10;
8
  __uint128_t res = num / denom;
9
  printf("Result = %ju\n", (uintmax_t)res); 
10
  return 0;
11
}
12