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 IEEE 754 and Power ISA require sqrt(+0)...
details: https://anonhg.NetBSD.org/src/rev/f5284c55a9c0
branches: trunk
changeset: 369891:f5284c55a9c0
user: rin <rin%NetBSD.org@localhost>
date: Tue Sep 06 23:00:43 2022 +0000
description:
IEEE 754 and Power ISA require sqrt(+0) = +0 and sqrt(-0) = -0, not Inf.
diffstat:
sys/arch/powerpc/fpu/fpu_sqrt.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 57ad566f9588 -r f5284c55a9c0 sys/arch/powerpc/fpu/fpu_sqrt.c
--- a/sys/arch/powerpc/fpu/fpu_sqrt.c Tue Sep 06 22:54:41 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_sqrt.c Tue Sep 06 23:00:43 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_sqrt.c,v 1.11 2022/09/01 06:10:58 rin Exp $ */
+/* $NetBSD: fpu_sqrt.c,v 1.12 2022/09/06 23:00:43 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_sqrt.c,v 1.11 2022/09/01 06:10:58 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_sqrt.c,v 1.12 2022/09/06 23:00:43 rin Exp $");
#include <sys/types.h>
#if defined(DIAGNOSTIC)||defined(DEBUG)
@@ -221,8 +221,6 @@
return (x);
}
if (ISZERO(x)) {
- fe->fe_cx |= FPSCR_ZX;
- x->fp_class = FPC_INF;
DUMPFPN(FPE_REG, x);
return (x);
}
Home |
Main Index |
Thread Index |
Old Index