x11gfx.hidd: support 32 bit modes
[AROS.git] / compiler / stdc / math / s_isinff.c
blob41de0b4d3742f71f3588807449926a0474c72820
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_isinff.c,v 1.6 2003/07/26 19:25:06 salo Exp $");
8 #endif
11 * isinff(x) returns 1 is x is inf, else 0;
12 * no branching!
15 #include "math.h"
16 #include "math_private.h"
18 int
19 __isinff(float x)
21 int32_t ix;
22 GET_FLOAT_WORD(ix,x);
23 ix &= 0x7fffffff;
24 ix ^= 0x7f800000;
25 return (ix == 0);