[llvm-commits] [test-suite] r91606 - /test-suite/trunk/SingleSource/Benchmarks/CoyoteBench/almabench.c

Chris Lattner sabre at nondot.org
Thu Dec 17 10:19:59 PST 2009


Author: lattner
Date: Thu Dec 17 12:19:59 2009
New Revision: 91606

URL: http://llvm.org/viewvc/llvm-project?rev=91606&view=rev
Log:
ok, don't make it completely bound by printf time, just print out 
send of the redundant output at the end.

Modified:
    test-suite/trunk/SingleSource/Benchmarks/CoyoteBench/almabench.c

Modified: test-suite/trunk/SingleSource/Benchmarks/CoyoteBench/almabench.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/CoyoteBench/almabench.c?rev=91606&r1=91605&r2=91606&view=diff

==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/CoyoteBench/almabench.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/CoyoteBench/almabench.c Thu Dec 17 12:19:59 2009
@@ -340,7 +340,7 @@
     int i, n, p;
     double jd[2];
     double pv[2][3];
-    double position[3];
+    double position[8][3];
     bool   ga_testing = false;
     
     // do we have verbose output?
@@ -371,13 +371,15 @@
             for (p = 0; p < 8; ++p)
             {
                 planetpv(jd,p,pv);
-                radecdist(pv,position);
-              
-                printf("%f %f %f\n", position[0], position[1], position[2]);
+                radecdist(pv,position[p]);
             }
         }
     }
 
+    for (p = 0; p < 8; ++p)
+      printf("%f %f %f\n", position[p][0], position[p][1], position[p][2]);
+
+  
     // get final time
 
     // report runtime





More information about the llvm-commits mailing list