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 fpu_mul(): Do not multiply sign bits fo...
details: https://anonhg.NetBSD.org/src/rev/d4bebc8255e2
branches: trunk
changeset: 369894:d4bebc8255e2
user: rin <rin%NetBSD.org@localhost>
date: Tue Sep 06 23:05:52 2022 +0000
description:
fpu_mul(): Do not multiply sign bits for NaN.
diffstat:
sys/arch/powerpc/fpu/fpu_mul.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 8912bb16b831 -r d4bebc8255e2 sys/arch/powerpc/fpu/fpu_mul.c
--- a/sys/arch/powerpc/fpu/fpu_mul.c Tue Sep 06 23:04:08 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_mul.c Tue Sep 06 23:05:52 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_mul.c,v 1.7 2022/09/06 23:04:08 rin Exp $ */
+/* $NetBSD: fpu_mul.c,v 1.8 2022/09/06 23:05:52 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_mul.c,v 1.7 2022/09/06 23:04:08 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_mul.c,v 1.8 2022/09/06 23:05:52 rin Exp $");
#include <sys/types.h>
#if defined(DIAGNOSTIC)||defined(DEBUG)
@@ -135,8 +135,7 @@
if (ISSNAN(x) || ISSNAN(y))
fe->fe_cx |= FPSCR_VXSNAN;
if (ISNAN(x))
- SWAP(x, y);
- y->fp_sign ^= x->fp_sign;
+ y = x;
DUMPFPN(FPE_REG, y);
return (y);
}
Home |
Main Index |
Thread Index |
Old Index