From 5327ab4d4f08b9d56f43bb40329754f2e7eb0cfc Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 8 Nov 2007 22:49:59 +0000 Subject: [PATCH] Typo. It wasn't using the final value in the division test, so the compiler could still have been optimizing the calculations out. git-svn-id: http://svn.voria.com/code@1118 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/test/fixed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ETL/trunk/test/fixed.cpp b/ETL/trunk/test/fixed.cpp index 369f0d1..13394dd 100644 --- a/ETL/trunk/test/fixed.cpp +++ b/ETL/trunk/test/fixed.cpp @@ -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(); } }; -- 2.7.4