aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754/s_isinfl.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-02-27 10:00:44 +0000
committerUlrich Drepper <drepper@redhat.com>1998-02-27 10:00:44 +0000
commit9eb2730eab81c7732ecd9727c64165cab01b0d2b (patch)
tree740f5b85a62a3aaf534f9a2d0da6cb2e80a28d2e /sysdeps/libm-ieee754/s_isinfl.c
parentd7390a372fef23e78ff90d1a93eb6d5dc1d337f2 (diff)
downloadglibc-9eb2730eab81c7732ecd9727c64165cab01b0d2b.tar
glibc-9eb2730eab81c7732ecd9727c64165cab01b0d2b.tar.gz
glibc-9eb2730eab81c7732ecd9727c64165cab01b0d2b.tar.bz2
glibc-9eb2730eab81c7732ecd9727c64165cab01b0d2b.zip
Update.
1998-02-25 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/libm-ieee754/s_isnanl.c: Ignore the explicit integer bit. * sysdeps/libm-ieee754/s_isinfl.c: Likewise.
Diffstat (limited to 'sysdeps/libm-ieee754/s_isinfl.c')
-rw-r--r--sysdeps/libm-ieee754/s_isinfl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/libm-ieee754/s_isinfl.c b/sysdeps/libm-ieee754/s_isinfl.c
index 697534ed0d..6f7c07c5af 100644
--- a/sysdeps/libm-ieee754/s_isinfl.c
+++ b/sysdeps/libm-ieee754/s_isinfl.c
@@ -21,9 +21,9 @@ __isinfl (long double x)
{
int32_t se,hx,lx;
GET_LDOUBLE_WORDS(se,hx,lx,x);
- hx |= lx | ((se & 0x7fff) ^ 0x7fff);
- hx |= -hx;
+ lx |= (hx & 0x7fffffff) | ((se & 0x7fff) ^ 0x7fff);
+ lx |= -lx;
se &= 0x8000;
- return ~(hx >> 31) & (1 - (se >> 14));
+ return ~(lx >> 31) & (1 - (se >> 14));
}
weak_alias (__isinfl, isinfl)