[llvm-commits] CVS: llvm/test/Programs/SingleSource/pi.c

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 12 18:56:08 PST 2003


Changes in directory llvm/test/Programs/SingleSource:

pi.c updated: 1.2 -> 1.3

---
Log message:

Fixes to make it work better in X86 64 bit emulation


---
Diffs of the changes:

Index: llvm/test/Programs/SingleSource/pi.c
diff -u llvm/test/Programs/SingleSource/pi.c:1.2 llvm/test/Programs/SingleSource/pi.c:1.3
--- llvm/test/Programs/SingleSource/pi.c:1.2	Thu Jan 31 22:29:41 2002
+++ llvm/test/Programs/SingleSource/pi.c	Sun Jan 12 18:55:38 2003
@@ -32,7 +32,6 @@
       itot = 1200;
 
       for(j=1; j<=itot; j++) {
-
 /*
 c   X and Y are two uniform random numbers between 0 and 1.
 c   They are computed using two linear congruential generators.
@@ -54,9 +53,8 @@
           low = low + 1;
         }
       }
-      printf(" x = %9.6f    y = %12.2f  low = %8ld j = %7ld\n",x,y,low,j);
+      printf(" x = %9.6f    y = %12.2f  low = %8d j = %7d\n",x,y,(int)low,(int)j);
       pi = 4.0 * (float)low/(float)itot;
-      printf("Pi = %9.6f ztot = %12.2f itot = %8ld\n",pi,ztot,itot);
-
+      printf("Pi = %9.6f ztot = %12.2f itot = %8d\n",pi,ztot,(int)itot);
       return 0;
 }





More information about the llvm-commits mailing list