Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/m68k/fpe pullup 1.3->1.4 (briggs): fix FPE



details:   https://anonhg.NetBSD.org/src/rev/5f40d9d904de
branches:  netbsd-1-4
changeset: 468809:5f40d9d904de
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 21 15:20:52 1999 +0000

description:
pullup 1.3->1.4 (briggs): fix FPE

diffstat:

 sys/arch/m68k/fpe/fpu_rem.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r aef8a995df4a -r 5f40d9d904de sys/arch/m68k/fpe/fpu_rem.c
--- a/sys/arch/m68k/fpe/fpu_rem.c       Mon Jun 21 15:20:39 1999 +0000
+++ b/sys/arch/m68k/fpe/fpu_rem.c       Mon Jun 21 15:20:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_rem.c,v 1.3 1996/04/30 12:02:54 briggs Exp $       */
+/*     $NetBSD: fpu_rem.c,v 1.3.24.1 1999/06/21 15:20:52 perry Exp $   */
 
 /*
  * Copyright (c) 1995  Ken Nakata
@@ -125,14 +125,12 @@
         */
        while (y->fp_exp != r->fp_exp || y->fp_mant[0] != r->fp_mant[0] ||
               y->fp_mant[1] != r->fp_mant[1] ||
-              y->fp_mant[2] != r->fp_mant[2] ||
-              y->fp_mant[3] != r->fp_mant[3]) {
+              y->fp_mant[2] != r->fp_mant[2]) {
 
            /* Step 3.2 */
            if (y->fp_exp < r->fp_exp || y->fp_mant[0] < r->fp_mant[0] ||
                y->fp_mant[1] < r->fp_mant[1] ||
-               y->fp_mant[2] < r->fp_mant[2] ||
-               y->fp_mant[3] < r->fp_mant[3]) {
+               y->fp_mant[2] < r->fp_mant[2]) {
                CPYFPN(&fe->fe_f1, r);
                CPYFPN(&fe->fe_f2, y);
                fe->fe_f2.fp_sign = 1;
@@ -165,13 +163,13 @@
     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_mant[2] < y->fp_mant[2])))
        /* if r < y/2 */
        goto Step6;
     /* Step 5.2 */
     if (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[2] || r->fp_mant[3] != y->fp_mant[3]) {
+       r->fp_mant[2] != y->fp_mant[2]) {
        /* if (!(r < y/2) && !(r == y/2)) */
        Last_Subtract = 1;
        q++;



Home | Main Index | Thread Index | Old Index