aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754/s_isinf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/s_isinf.c')
-rw-r--r--sysdeps/libm-ieee754/s_isinf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/libm-ieee754/s_isinf.c b/sysdeps/libm-ieee754/s_isinf.c
index d3c2cb55b7..6f76ce1fba 100644
--- a/sysdeps/libm-ieee754/s_isinf.c
+++ b/sysdeps/libm-ieee754/s_isinf.c
@@ -23,12 +23,11 @@ static char rcsid[] = "$NetBSD: s_isinf.c,v 1.3 1995/05/11 23:20:14 jtc Exp $";
double x;
#endif
{
- u_int32_t hx;
- int32_t lx;
+ int32_t hx,lx;
EXTRACT_WORDS(hx,lx,x);
lx |= (hx & 0x7fffffff) ^ 0x7ff00000;
lx |= -lx;
- return ~(lx >> 31) & (1 - ((hx >> 30) & 2));
+ return ~(lx >> 31) & (hx >> 30);
}
weak_alias (__isinf, isinf)
#ifdef NO_LONG_DOUBLE