64div.c (331B)
1 #include "rep.h" 2 3 volatile void foo(long long); 4 volatile long long a = 0x123456789abcdefLL; 5 volatile long long b = 0xfedcba987654321LL; 6 7 int main() 8 { 9 long long a1 = a; 10 long long b1 = b; 11 for (int i = 0; i < 1000000; i++) { 12 REP100(a /= b; a+=b;) 13 } 14 asm volatile("" : : "r" (a) : "memory"); // fake out optimizer 15 return 0; 16 } 17