Chris Quenelle writes: > > Advice from someone who knows much more than me: > > > > C99 does not offer either issubnormal() or iszero(). > > > > Since C99 mode is in use, both issubnormal() and iszero() can be easily > > implemented with the C99 fpclassify() classification macro: > > > > #include <math.h> > > #undef issubnormal > > #define issubnormal(x) (fpclassify(x) == FP_SUBNORMAL) > > #undef iszero > > #define iszero(x) (fpclassify(x) == FP_ZERO) > > > > No need to rely on anything Sun/Linux-specific, really.
Nice! -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677