2 /* @(#)z_numtest.c 1.0 98/08/13 */
3 /******************************************************************
7 * x - pointer to a floating point value
10 * An integer that indicates what kind of number was passed in:
11 * NUM = 3 - a finite value
12 * NAN = 2 - not a number
13 * INF = 1 - an infinite value
17 * This routine returns an integer that indicates the character-
18 * istics of the number that was passed in.
20 *****************************************************************/
25 #ifndef _DOUBLE_IS_32BITS
33 EXTRACT_WORDS (hx
, lx
, x
);
35 exp
= (hx
& 0x7ff00000) >> 20;
37 /* Check for a zero input. */
43 /* Check for not a number or infinity. */
46 if(hx
& 0xf0000 || lx
)
52 /* Otherwise it's a finite value. */
57 #endif /* _DOUBLE_IS_32BITS */