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_explode(): Fix sign for FTYPE_INT.



details:   https://anonhg.NetBSD.org/src/rev/3e33fdf12266
branches:  trunk
changeset: 369907:3e33fdf12266
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Sep 07 06:51:58 2022 +0000

description:
fpu_explode(): Fix sign for FTYPE_INT.

NFC for now; conversion for this type is used only for immediate 1.

diffstat:

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

diffs (26 lines):

diff -r 85eef5ccbea0 -r 3e33fdf12266 sys/arch/powerpc/fpu/fpu_explode.c
--- a/sys/arch/powerpc/fpu/fpu_explode.c        Wed Sep 07 06:37:04 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_explode.c        Wed Sep 07 06:51:58 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_explode.c,v 1.13 2022/09/05 00:24:24 rin Exp $ */
+/*     $NetBSD: fpu_explode.c,v 1.14 2022/09/07 06:51:58 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.13 2022/09/05 00:24:24 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.14 2022/09/07 06:51:58 rin Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -227,6 +227,7 @@
                break;
 
        case FTYPE_INT:
+               fp->fp_sign = lo >> 31;
                class = fpu_itof(fp, lo);
                break;
 



Home | Main Index | Thread Index | Old Index