Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/fpu Fix an obvious error that would cause fpu...
details: https://anonhg.NetBSD.org/src/rev/3b85d93cbf6a
branches: trunk
changeset: 495196:3b85d93cbf6a
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Jul 24 04:13:45 2000 +0000
description:
Fix an obvious error that would cause fpu_ftoxi() to drop the upper half.
The compiler even emitted a warning for this...
diffstat:
sys/arch/sparc/fpu/fpu_implode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r af9fc0cb23a2 -r 3b85d93cbf6a sys/arch/sparc/fpu/fpu_implode.c
--- a/sys/arch/sparc/fpu/fpu_implode.c Mon Jul 24 04:11:03 2000 +0000
+++ b/sys/arch/sparc/fpu/fpu_implode.c Mon Jul 24 04:13:45 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_implode.c,v 1.5 2000/06/18 06:54:17 mrg Exp $ */
+/* $NetBSD: fpu_implode.c,v 1.6 2000/07/24 04:13:45 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -272,7 +272,7 @@
/* NB: the following includes exp < 0 cases */
if (fpu_shr(fp, FP_NMANT - 1 - exp) != 0)
fe->fe_cx |= FSR_NX;
- i = (fp->fp_mant[2]<<32)|fp->fp_mant[3];
+ i = ((u_int64_t)fp->fp_mant[2]<<32)|fp->fp_mant[3];
if (i >= ((u_int64_t)0x8000000000000000LL + sign))
break;
return (sign ? -i : i);
Home |
Main Index |
Thread Index |
Old Index