From: Ulrich Drepper Date: Mon, 2 Mar 1998 17:35:51 +0000 (+0000) Subject: Handle numbers > 1.0 correctly. X-Git-Tag: cvs/before-sparc-2_0_x-branch~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38480804b00f852c2e2659ac7d48256b0d5fa48;p=thirdparty%2Fglibc.git Handle numbers > 1.0 correctly. --- diff --git a/sysdeps/libm-ieee754/s_modfl.c b/sysdeps/libm-ieee754/s_modfl.c index f97b368d6d4..5f2b4b5e2c4 100644 --- a/sysdeps/libm-ieee754/s_modfl.c +++ b/sysdeps/libm-ieee754/s_modfl.c @@ -71,7 +71,7 @@ static long double one = 1.0; SET_LDOUBLE_WORDS(x,se&0x8000,0,0); /* return +-0 */ return x; } else { /* fraction part in low x */ - i = ((u_int32_t)(0x7fffffff))>>(j0-20); + i = ((u_int32_t)(0x7fffffff))>>(j0-32); if((i1&i)==0) { /* x is integral */ *iptr = x; INSERT_WORDS(x,se&0x8000,0); /* return +-0 */