Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/powerpc/gen De-lint. Reviewed by christos.



details:   https://anonhg.NetBSD.org/src/rev/0222278e28cd
branches:  trunk
changeset: 503578:0222278e28cd
user:      wiz <wiz%NetBSD.org@localhost>
date:      Fri Feb 09 14:16:12 2001 +0000

description:
De-lint. Reviewed by christos.

diffstat:

 lib/libc/arch/powerpc/gen/modf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 84c9abff25b2 -r 0222278e28cd lib/libc/arch/powerpc/gen/modf.c
--- a/lib/libc/arch/powerpc/gen/modf.c  Fri Feb 09 11:47:21 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/modf.c  Fri Feb 09 14:16:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: modf.c,v 1.3 2000/06/14 06:49:04 cgd Exp $ */
+/* $NetBSD: modf.c,v 1.4 2001/02/09 14:16:12 wiz Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -94,8 +94,8 @@
        frac = ((u_int64_t)v.s.dbl_frach << 32) + v.s.dbl_fracl;
        frac >>= DBL_FRACBITS - (u.s.dbl_exp - DBL_EXP_BIAS);
        frac <<= DBL_FRACBITS - (u.s.dbl_exp - DBL_EXP_BIAS);
-       v.s.dbl_fracl = frac & 0xffffffff;
-       v.s.dbl_frach = frac >> 32;
+       v.s.dbl_fracl = (u_int)(frac & 0x00000000ffffffffLLU);
+       v.s.dbl_frach = (u_int)(frac >> 32);
        *iptr = v.v;
 
        u.v -= v.v;



Home | Main Index | Thread Index | Old Index