Update copyright notices with scripts/update-copyrights.
[glibc.git] / sysdeps / ieee754 / dbl-64 / wordsize-64 / s_isinf_ns.c
blob9d78ed13ae9a933687da0c4520f6cd004ebad800
1 /*
2 * Written by Ulrich Drepper <drepper@gmail.com>.
3 */
5 /*
6 * __isinf_ns(x) returns != 0 if x is ±inf, else 0;
7 * no branching!
8 */
10 #include <math.h>
11 #include <math_private.h>
13 #undef __isinf_ns
14 int
15 __isinf_ns (double x)
17 int64_t ix;
18 EXTRACT_WORDS64(ix,x);
19 return (ix & UINT64_C(0x7fffffffffffffff)) == UINT64_C(0x7ff0000000000000);