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"
18 EXTRACT_WORDS(hx,lx,x);
19 lx |= (hx & 0x7fffffff) ^ 0x7ff00000;
21 return ~(lx >> 31) & (hx >> 30);
23 libm_hidden_def(__isinf)