Use round-to-nearest internally in jn, test with ALL_RM_TEST (bug 18602).
[glibc.git] / sysdeps / ieee754 / ldbl-96 / s_isinf_nsl.c
blob9c7868b4902dae0ee4b80fd2eaddc34beee4b374
1 /*
2 * Written by Ulrich Drepper <drepper@gmail.com>.
3 */
5 /*
6 * __isinf_nsl(x) returns != 0 if x is ±inf, else 0;
7 */
9 #include <math.h>
10 #include <math_private.h>
12 int
13 __isinf_nsl (long double x)
15 int32_t se,hx,lx;
16 GET_LDOUBLE_WORDS(se,hx,lx,x);
17 return !(((se & 0x7fff) ^ 0x7fff) | lx | (hx & 0x7fffffff));