diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-17 00:39:30 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-17 00:39:30 +0000 |
commit | 739aebec5ed793f23e63851fa4dac1b2ae6a6d2b (patch) | |
tree | a2cdbc24899af1d23a7844b75728311147221e79 | |
parent | 19046a084a5e298f1ed1c32d0af3cea27f34d3c5 (diff) |
Convert for-if-break construct into do-while
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@69 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r-- | fpemulation.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fpemulation.c b/fpemulation.c index a99949d..542393f 100644 --- a/fpemulation.c +++ b/fpemulation.c @@ -83,12 +83,10 @@ DoEmFloat(void) ** less than minimum, increase the loop count and try ** again. */ - for (; i < LOOP_MAX; i += i) { - if (DoEmFloatIteration(abase, bbase, cbase, i) > MINIMUM_TICKS) { - loops = i; - break; - } - } + do { + loops = i; + i += i; + } while ((DoEmFloatIteration(abase, bbase, cbase, i) <= MINIMUM_TICKS) && (i < LOOP_MAX)); } /* |