Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/fpe Fix sign of NAN. Found by XM6i.



details:   https://anonhg.NetBSD.org/src/rev/9bd0b1ba19e0
branches:  trunk
changeset: 819457:9bd0b1ba19e0
user:      isaki <isaki%NetBSD.org@localhost>
date:      Tue Dec 06 06:41:14 2016 +0000

description:
Fix sign of NAN.  Found by XM6i.

diffstat:

 sys/arch/m68k/fpe/fpu_mul.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 5e9bc00d5a2b -r 9bd0b1ba19e0 sys/arch/m68k/fpe/fpu_mul.c
--- a/sys/arch/m68k/fpe/fpu_mul.c       Tue Dec 06 05:58:19 2016 +0000
+++ b/sys/arch/m68k/fpe/fpu_mul.c       Tue Dec 06 06:41:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_mul.c,v 1.8 2013/03/26 11:30:21 isaki Exp $ */
+/*     $NetBSD: fpu_mul.c,v 1.9 2016/12/06 06:41:14 isaki Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_mul.c,v 1.8 2013/03/26 11:30:21 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_mul.c,v 1.9 2016/12/06 06:41:14 isaki Exp $");
 
 #include <sys/types.h>
 
@@ -122,7 +122,6 @@
         */
        ORDER(x, y);
        if (ISNAN(y)) {
-               y->fp_sign ^= x->fp_sign;
                return (y);
        }
        if (ISINF(y)) {



Home | Main Index | Thread Index | Old Index