[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main/object.c

Reid Spencer reid at x10sys.com
Thu Aug 5 00:29:27 PDT 2004



Changes in directory llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main:

object.c updated: 1.4 -> 1.5
---
Log message:

Make the new function static so GCC will inline it. Also, remove from
cruft from earlier testing.


---
Diffs of the changes:  (+3 -3)

Index: llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main/object.c
diff -u llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main/object.c:1.4 llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main/object.c:1.5
--- llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main/object.c:1.4	Thu Aug  5 02:23:48 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/McCat/08-main/object.c	Thu Aug  5 02:29:17 2004
@@ -51,7 +51,7 @@
   return (ObjPtr)o;
 }
 
-int FPEqual(double d1, double d2) {
+static int FPEqual(double d1, double d2) {
     return fabs(d1-d2) < 0.000001L;
 }
 
@@ -255,8 +255,8 @@
   if(o->Points != NULL)
     tmp = o->Points;
   while(tmp != NULL) {
-    printf("Point[%i] = (%.2lf, %.2lf, %.2lf)",i,tmp->P->x,tmp->P->y,tmp->P->z);
-    printf(" -> (%.2lf, %.2lf, %.2lf)\n",tmp->P->tx,tmp->P->ty,tmp->P->tz);
+    printf("Point[%i] = (%.2f, %.2f, %.2f)",i,tmp->P->x,tmp->P->y,tmp->P->z);
+    printf(" -> (%.2f, %.2f, %.2f)\n",tmp->P->tx,tmp->P->ty,tmp->P->tz);
     ++i;
     tmp = tmp->NextPoint;
   }return;






More information about the llvm-commits mailing list