Typo. It wasn't using the final value in the division test, so the compiler could...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 8 Nov 2007 22:49:59 +0000 (22:49 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 8 Nov 2007 22:49:59 +0000 (22:49 +0000)
git-svn-id: http://svn.voria.com/code@1118 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/test/fixed.cpp

index 369f0d1..13394dd 100644 (file)
@@ -111,7 +111,7 @@ struct speed_test
                                a=3+i; b=40+i; b/=a; a/=(i%20)+1; acc+= a;
                        }
 
-               fprintf(stderr, "[%1d]...", int(int(a)/1e9)+5); // so the compiler doesn't optimize everything out
+               fprintf(stderr, "[%1d]...", int(int(acc)/1e9)+5); // so the compiler doesn't optimize everything out
                return MyTimer();
        }
 };