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.2->1.3 (briggs): fix FPE



details:   https://anonhg.NetBSD.org/src/rev/d504d9ec451f
branches:  netbsd-1-4
changeset: 468795:d504d9ec451f
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 21 15:17:22 1999 +0000

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

diffstat:

 sys/arch/m68k/fpe/fpu_add.c |  14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diffs (57 lines):

diff -r b9f26a2eabe2 -r d504d9ec451f sys/arch/m68k/fpe/fpu_add.c
--- a/sys/arch/m68k/fpe/fpu_add.c       Mon Jun 21 15:09:06 1999 +0000
+++ b/sys/arch/m68k/fpe/fpu_add.c       Mon Jun 21 15:17:22 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_add.c,v 1.2 1996/04/30 11:52:09 briggs Exp $ */
+/*     $NetBSD: fpu_add.c,v 1.2.24.1 1999/06/21 15:17:22 perry Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
        register struct fpemu *fe;
 {
        register struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2, *r;
-       register u_int r0, r1, r2, r3;
+       register u_int r0, r1, r2;
        register int rd;
 
        /*
@@ -139,8 +139,7 @@
                 * (but remember to adjust the exponent).
                 */
                /* r->fp_mant = x->fp_mant + y->fp_mant */
-               FPU_ADDS(r->fp_mant[3], x->fp_mant[3], y->fp_mant[3]);
-               FPU_ADDCS(r->fp_mant[2], x->fp_mant[2], y->fp_mant[2]);
+               FPU_ADDS(r->fp_mant[2], x->fp_mant[2], y->fp_mant[2]);
                FPU_ADDCS(r->fp_mant[1], x->fp_mant[1], y->fp_mant[1]);
                FPU_ADDC(r0, x->fp_mant[0], y->fp_mant[0]);
                if ((r->fp_mant[0] = r0) >= FP_2) {
@@ -172,13 +171,12 @@
                 */
                /* r->fp_mant = x->fp_mant - y->fp_mant */
                FPU_SET_CARRY(y->fp_sticky);
-               FPU_SUBCS(r3, x->fp_mant[3], y->fp_mant[3]);
                FPU_SUBCS(r2, x->fp_mant[2], y->fp_mant[2]);
                FPU_SUBCS(r1, x->fp_mant[1], y->fp_mant[1]);
                FPU_SUBC(r0, x->fp_mant[0], y->fp_mant[0]);
                if (r0 < FP_2) {
                        /* cases i and ii */
-                       if ((r0 | r1 | r2 | r3) == 0) {
+                       if ((r0 | r1 | r2) == 0) {
                                /* case ii */
                                r->fp_class = FPC_ZERO;
                                r->fp_sign = (rd == FPCR_MINF);
@@ -196,12 +194,10 @@
                                panic("fpu_add");
 #endif
                        r->fp_sign = y->fp_sign;
-                       FPU_SUBS(r3, 0, r3);
-                       FPU_SUBCS(r2, 0, r2);
+                       FPU_SUBS(r2, 0, r2);
                        FPU_SUBCS(r1, 0, r1);
                        FPU_SUBC(r0, 0, r0);
                }
-               r->fp_mant[3] = r3;
                r->fp_mant[2] = r2;
                r->fp_mant[1] = r1;
                r->fp_mant[0] = r0;



Home | Main Index | Thread Index | Old Index