diff options
Diffstat (limited to 'sysdeps/libm-ieee754/s_isnanl.c')
-rw-r--r-- | sysdeps/libm-ieee754/s_isnanl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/libm-ieee754/s_isnanl.c b/sysdeps/libm-ieee754/s_isnanl.c index 0da97090bd..ba53faa1fd 100644 --- a/sysdeps/libm-ieee754/s_isnanl.c +++ b/sysdeps/libm-ieee754/s_isnanl.c @@ -36,8 +36,8 @@ static char rcsid[] = "$NetBSD: $"; int32_t se,hx,lx; GET_LDOUBLE_WORDS(se,hx,lx,x); se = (se & 0x7fff) << 1; - hx |= lx; - se |= (u_int32_t)(hx|(-hx))>>31; + lx |= hx & 0x7fffffff; + se |= (u_int32_t)(lx|(-lx))>>31; se = 0xfffe - se; return (int)((u_int32_t)(se))>>16; } |