From c8d46965ec6caa2622a0f471b8a7542382ca2b62 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 17 Nov 2008 00:58:57 +0000 Subject: 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 --- fpemulation.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'fpemulation.c') 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)); } /* -- cgit v1.2.3