2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Changed to return -1 for -Inf by Ulrich Drepper <drepper@cygnus.com>.
8 * isinf(x) returns 1 is x is inf, -1 if x is -inf, else 0;
13 #include <math_private.h>
19 EXTRACT_WORDS64(ix
,x
);
20 int64_t t
= ix
& UINT64_C(0x7fffffffffffffff);
21 t
^= UINT64_C(0x7ff0000000000000);
23 return ~(t
>> 63) & (ix
>> 62);
26 weak_alias (__isinf
, isinf
)
28 strong_alias (__isinf
, __isinfl
)
29 weak_alias (__isinf
, isinfl
)