Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/sparc/fpu Approved by thorpej:



details:   https://anonhg.NetBSD.org/src/rev/f341f1e39d98
branches:  netbsd-1-5
changeset: 488756:f341f1e39d98
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Jul 26 23:59:21 2000 +0000

description:
Approved by thorpej:
Fix an obvious error that would cause fpu_ftoxi() to drop the upper half.
The compiler even emitted a warning for this...

syssrc/sys/arch/sparc/fpu/fpu_implode.c                 1.5 -> 1.6

diffstat:

 sys/arch/sparc/fpu/fpu_implode.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2457e077125b -r f341f1e39d98 sys/arch/sparc/fpu/fpu_implode.c
--- a/sys/arch/sparc/fpu/fpu_implode.c  Wed Jul 26 23:58:07 2000 +0000
+++ b/sys/arch/sparc/fpu/fpu_implode.c  Wed Jul 26 23:59:21 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.5.2.1 2000/07/26 23:59:21 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