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 Style sync with other parts of this fil...



details:   https://anonhg.NetBSD.org/src/rev/ffe7ff18a847
branches:  trunk
changeset: 369897:ffe7ff18a847
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Sep 06 23:14:28 2022 +0000

description:
Style sync with other parts of this file, as well as FreeBSD:
https://cgit.freebsd.org/src/commit/sys/powerpc/fpu/fpu_sqrt.c?id=81dd9c5e69a2709ae3317dd383093e1c8a970d9e

NFC since q is initialized to zero just above.

diffstat:

 sys/arch/powerpc/fpu/fpu_sqrt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r cf3a0daee45e -r ffe7ff18a847 sys/arch/powerpc/fpu/fpu_sqrt.c
--- a/sys/arch/powerpc/fpu/fpu_sqrt.c   Tue Sep 06 23:12:42 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_sqrt.c   Tue Sep 06 23:14:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_sqrt.c,v 1.13 2022/09/06 23:12:42 rin Exp $ */
+/*     $NetBSD: fpu_sqrt.c,v 1.14 2022/09/06 23:14:28 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_sqrt.c,v 1.13 2022/09/06 23:12:42 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_sqrt.c,v 1.14 2022/09/06 23:14:28 rin Exp $");
 
 #include <sys/types.h>
 #if defined(DIAGNOSTIC)||defined(DEBUG)
@@ -352,7 +352,7 @@
        FPU_SUBC(d0, x0, t0);
        if ((int)d0 >= 0) {
                x0 = d0, x1 = d1, x2 = d2;
-               q |= bit;
+               q = bit;
                y1 |= 1;                /* now t1, y1 are set in concrete */
        }
        ODD_DOUBLE;
@@ -386,7 +386,7 @@
        FPU_SUBC(d0, x0, t0);
        if ((int)d0 >= 0) {
                x0 = d0, x1 = d1, x2 = d2; x3 = d3;
-               q |= bit;
+               q = bit;
                y2 |= 1;
        }
        ODD_DOUBLE;



Home | Main Index | Thread Index | Old Index