compiler/mlib: use __ in front of all isxxx() functions
[AROS.git] / compiler / mlib / s_isinff.c
blobc3ee38583638021ea18a9d8c3dce8c4bd75549f2
1 /*
2 * Written by J.T. Conklin <jtc@NetBSD.org>.
3 * Public domain.
4 */
6 #include <sys/cdefs.h>
7 #if defined(LIBM_SCCS) && !defined(lint)
8 __RCSID("$NetBSD: s_isinff.c,v 1.6 2003/07/26 19:25:06 salo Exp $");
9 #endif
12 * isinff(x) returns 1 is x is inf, else 0;
13 * no branching!
16 #include "math.h"
17 #include "math_private.h"
19 int
20 __isinff(float x)
22 int32_t ix;
23 GET_FLOAT_WORD(ix,x);
24 ix &= 0x7fffffff;
25 ix ^= 0x7f800000;
26 return (ix == 0);