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_compare(): Assign r by using return...
details: https://anonhg.NetBSD.org/src/rev/a0396ca9a9d6
branches: trunk
changeset: 369930:a0396ca9a9d6
user: rin <rin%NetBSD.org@localhost>
date: Thu Sep 08 15:22:43 2022 +0000
description:
fpu_compare(): Assign r by using return value from fpu_sub(),
instead of directly using &fe->fe_f3. NFC; only for clarity.
diffstat:
sys/arch/powerpc/fpu/fpu_compare.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 5a4ed9704007 -r a0396ca9a9d6 sys/arch/powerpc/fpu/fpu_compare.c
--- a/sys/arch/powerpc/fpu/fpu_compare.c Thu Sep 08 15:21:50 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_compare.c Thu Sep 08 15:22:43 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_compare.c,v 1.7 2022/09/08 15:21:50 rin Exp $ */
+/* $NetBSD: fpu_compare.c,v 1.8 2022/09/08 15:22:43 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_compare.c,v 1.7 2022/09/08 15:21:50 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_compare.c,v 1.8 2022/09/08 15:22:43 rin Exp $");
#include <sys/types.h>
@@ -83,7 +83,6 @@
a = &fe->fe_f1;
b = &fe->fe_f2;
- r = &fe->fe_f3;
if (ISNAN(a) || ISNAN(b)) {
/*
@@ -154,7 +153,7 @@
cc = FPSCR_FE;
goto done;
}
- fpu_sub(fe);
+ r = fpu_sub(fe);
if (ISZERO(r))
cc = FPSCR_FE;
else if (r->fp_sign)
Home |
Main Index |
Thread Index |
Old Index