vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

64mul.c (326B)


      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 < 10000000; i++) {
     12 		REP100(a *= b;)
     13 	}
     14 	asm volatile("" : : "r" (a) : "memory");  // fake out optimizer
     15 	return 0;
     16 }
     17