Mail Archives: djgpp/1999/01/07/01:54:52
On Wed, 6 Jan 1999, Charles Krug wrote:
> I'm trying to find the header files containing definitions for
> NaN, POS_INF etc. Do these exist?
>
> Or are they defined internally somewhere, so that they can simply
> be used?
The math library libm.a supplied with DJGPP v2.02 includes functions
nan(), infinity(), nanf() and infinityf(), which return what you'd
expect (those whose names end in `f' return the float, as opposed to
double, NaN and Inf). The Info file libm.info documents them (e.g.,
type "info libm math nan" from the DOS prompt).
Is this what you want?
> Of course, if djgpp doesn't use IEEE floating point numbers, I
> guess I need whatever the equivalent "thing" is under djgpp's
> floating point format.
DJGPP cannot do without IEEE FP numbers, since that's what the x87
processors support.
- Raw text -