summaryrefslogtreecommitdiff
path: root/fpemulation.c
diff options
context:
space:
mode:
Diffstat (limited to 'fpemulation.c')
-rw-r--r--fpemulation.c10
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));
}
/*