Expand PMF_FN_* macros.
[netbsd-mini2440.git] / lib / libm / src / s_isinf.c
blob74df82a920afa78f4aa5d2e8a4fd693b943a0158
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_isinf.c,v 1.5 2002/05/26 22:01:56 wiz Exp $");
9 #endif
12 * isinf(x) returns 1 is x is inf, else 0;
13 * no branching!
16 #include "math.h"
17 #include "math_private.h"
19 int
20 isinf(double x)
22 int32_t hx,lx;
23 EXTRACT_WORDS(hx,lx,x);
24 hx &= 0x7fffffff;
25 hx ^= 0x7ff00000;
26 hx |= lx;
27 return (hx == 0);