diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-17 00:58:57 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-17 00:58:57 +0000 |
commit | c8d46965ec6caa2622a0f471b8a7542382ca2b62 (patch) | |
tree | aa2ec1ee091cdc95b848ea0fcd3af86b95bc4572 | |
parent | 129d2f71d495c61bf4284d7a721794119a65f0b3 (diff) |
Remove stupid i variable. Don't know why I didn't see this before
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@73 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r-- | fpemulation.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fpemulation.c b/fpemulation.c index 542393f..2a0d849 100644 --- a/fpemulation.c +++ b/fpemulation.c @@ -46,9 +46,8 @@ DoEmFloat(void) InternalFPF* cbase = NULL; clock_t total_time = 0; int iterations = 0; - unsigned long i = 1; static bool is_adjusted = false; - static long loops = 0; + static long loops = 1; abase = malloc(ARRAY_SIZE * sizeof(InternalFPF)); if (!abase) { @@ -84,9 +83,8 @@ DoEmFloat(void) ** again. */ do { - loops = i; - i += i; - } while ((DoEmFloatIteration(abase, bbase, cbase, i) <= MINIMUM_TICKS) && (i < LOOP_MAX)); + loops += loops; + } while ((DoEmFloatIteration(abase, bbase, cbase, loops) <= MINIMUM_TICKS) && (loops < LOOP_MAX)); } /* |