x11gfx.hidd: support 32 bit modes
[AROS.git] / compiler / stdc / math / s_isinf.c
blob1b86e873d612690a75398339533f817e9ca28f16
1 /*
2 * Written by J.T. Conklin <jtc@NetBSD.org>.
3 * Public domain.
4 */
6 #if defined(LIBM_SCCS) && !defined(lint)
7 __RCSID("$NetBSD: s_isinf.c,v 1.6 2003/07/26 19:25:05 salo Exp $");
8 #endif
11 * isinf(x) returns 1 is x is inf, else 0;
12 * no branching!
15 #include "math.h"
16 #include "math_private.h"
18 int
19 __isinf(double x)
21 int32_t hx,lx;
22 EXTRACT_WORDS(hx,lx,x);
23 hx &= 0x7fffffff;
24 hx ^= 0x7ff00000;
25 hx |= lx;
26 return (hx == 0);