2 /* @(#)z_isinf.c 1.0 98/08/13 */
3 /******************************************************************
7 * x - pointer to a floating point value
10 * An integer that indicates if the number is infinite.
13 * This routine returns an integer that indicates if the number
14 * passed in is infinite (1) or is finite (0).
16 *****************************************************************/
21 #ifndef _DOUBLE_IS_32BITS
28 EXTRACT_WORDS (hx
, lx
, x
);
29 exp
= (hx
& 0x7ff00000) >> 20;
31 if ((exp
== 0x7ff) && ((hx
& 0xf0000 || lx
) == 0))
37 #endif /* _DOUBLE_IS_32BITS */