diff options
Diffstat (limited to 'sys/arch/m68k/fpe/fpu_rem.c')
-rw-r--r-- | sys/arch/m68k/fpe/fpu_rem.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/arch/m68k/fpe/fpu_rem.c b/sys/arch/m68k/fpe/fpu_rem.c index ddf24ec5725..0b201352e47 100644 --- a/sys/arch/m68k/fpe/fpu_rem.c +++ b/sys/arch/m68k/fpe/fpu_rem.c @@ -1,4 +1,5 @@ -/* $NetBSD: fpu_rem.c,v 1.1 1995/11/03 04:47:17 briggs Exp $ */ +/* $OpenBSD: fpu_rem.c,v 1.2 1996/05/09 22:20:48 niklas Exp $ */ +/* $NetBSD: fpu_rem.c,v 1.3 1996/04/30 12:02:54 briggs Exp $ */ /* * Copyright (c) 1995 Ken Nakata @@ -92,7 +93,7 @@ __fpu_modrem(fe, modrem) static struct fpn X, Y; struct fpn *x, *y, *r; u_int signX, signY, signQ; - int i, j, k, l, q; + int j, k, l, q; int Last_Subtract; CPYFPN(&X, &fe->fe_f1); @@ -115,9 +116,7 @@ __fpu_modrem(fe, modrem) l = x->fp_exp - y->fp_exp; k = 0; q = 0; - if (l < 0) { - goto Step4; - } else { + if (l >= 0) { CPYFPN(r, x); r->fp_exp -= l; j = l; @@ -153,7 +152,7 @@ __fpu_modrem(fe, modrem) r->fp_exp++; } /* Step 9 */ - + goto Step9; } Step4: Last_Subtract = 0; @@ -165,9 +164,9 @@ __fpu_modrem(fe, modrem) */ /* Step 5.1 */ if (r->fp_exp + 1 < y->fp_exp || - r->fp_exp + 1 == y->fp_exp && - (r->fp_mant[0] < y->fp_mant[0] || r->fp_mant[1] < y->fp_mant[1] || - r->fp_mant[2] < y->fp_mant[3] || r->fp_mant[4] < y->fp_mant[4])) + (r->fp_exp + 1 == y->fp_exp && + (r->fp_mant[0] < y->fp_mant[0] || r->fp_mant[1] < y->fp_mant[1] || + r->fp_mant[2] < y->fp_mant[3] || r->fp_mant[4] < y->fp_mant[4]))) /* if r < y/2 */ goto Step6; /* Step 5.2 */ |