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 Set FPSCR[VXSQRT] for non-zero negative...



details:   https://anonhg.NetBSD.org/src/rev/19aa6a2fa9af
branches:  trunk
changeset: 973305:19aa6a2fa9af
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Jun 27 03:25:28 2020 +0000

description:
Set FPSCR[VXSQRT] for non-zero negative operand.

Taken from (a part of) FreeBSD Revision 343078:
https://svnweb.freebsd.org/base?view=revision&revision=343078

diffstat:

 sys/arch/powerpc/fpu/fpu_sqrt.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3eb367ebc152 -r 19aa6a2fa9af sys/arch/powerpc/fpu/fpu_sqrt.c
--- a/sys/arch/powerpc/fpu/fpu_sqrt.c   Sat Jun 27 03:07:57 2020 +0000
+++ b/sys/arch/powerpc/fpu/fpu_sqrt.c   Sat Jun 27 03:25:28 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_sqrt.c,v 1.6 2020/06/27 03:07:57 rin Exp $ */
+/*     $NetBSD: fpu_sqrt.c,v 1.7 2020/06/27 03:25:28 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_sqrt.c,v 1.6 2020/06/27 03:07:57 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_sqrt.c,v 1.7 2020/06/27 03:25:28 rin Exp $");
 
 #include <sys/types.h>
 #if defined(DIAGNOSTIC)||defined(DEBUG)
@@ -226,6 +226,7 @@
                return (x);
        }
        if (x->fp_sign) {
+               fe->fe_cx |= FPSCR_VXSQRT;
                return (fpu_newnan(fe));
        }
        if (ISINF(x)) {



Home | Main Index | Thread Index | Old Index