C Standard Library Extensions
6.2.0
|
and qfits_isinf() macros
The isnan() and isinf() macros are unfortunately not yet part of the standard C math library everywhere. They can usually be found in different places, if they are offered at all, and require the application to link against the math library. To avoid portability problems and linking against -lm, this module implements a fast and portable way of finding out whether a floating-point value (float or double) is a NaN or an Inf.
Instead of calling isnan() and isinf(), the programmer including this file should call qfits_isnan() and qfits_isinf().