Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/fpu Do not assert FPSCR[UX] when overflow.



details:   https://anonhg.NetBSD.org/src/rev/a78c2da13b08
branches:  trunk
changeset: 369750:a78c2da13b08
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Aug 30 11:00:49 2022 +0000

description:
Do not assert FPSCR[UX] when overflow.

diffstat:

 sys/arch/powerpc/fpu/fpu_implode.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ad08d001eb1e -r a78c2da13b08 sys/arch/powerpc/fpu/fpu_implode.c
--- a/sys/arch/powerpc/fpu/fpu_implode.c        Tue Aug 30 10:59:43 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_implode.c        Tue Aug 30 11:00:49 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_implode.c,v 1.8 2022/08/28 22:22:41 rin Exp $ */
+/*     $NetBSD: fpu_implode.c,v 1.9 2022/08/30 11:00:49 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.8 2022/08/28 22:22:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.9 2022/08/30 11:00:49 rin Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -408,7 +408,7 @@
        if (round(fe, fp) && fp->fp_mant[2] == DBL_EXP(2))
                exp++;
        if (exp >= DBL_EXP_INFNAN) {
-               fe->fe_cx |= FPSCR_OX | FPSCR_UX;
+               fe->fe_cx |= FPSCR_OX;
                if (toinf(fe, sign)) {
                        res[1] = 0;
                        return (sign | DBL_EXP(DBL_EXP_INFNAN) | 0);



Home | Main Index | Thread Index | Old Index