2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Change for long double by Jakub Jelinek <jj@ultra.linux.cz>
7 #if defined(LIBM_SCCS) && !defined(lint)
8 static char rcsid
[] = "$NetBSD: $";
12 * isinfq(x) returns 1 if x is inf, -1 if x is -inf, else 0;
16 #include "quadmath-imp.h"
22 GET_FLT128_WORDS64(hx
,lx
,x
);
23 lx
|= (hx
& 0x7fffffffffffffffLL
) ^ 0x7fff000000000000LL
;
25 return ~(lx
>> 63) & (hx
>> 62);