Mail Archives: djgpp-workers/2003/02/24/13:07:58
Hello.
In stdlib.h we have:
#ifdef _USE_LIBM_MATH_H
#include <libm/math.h>
#else
...
extern double __dj_huge_val;
#define HUGE_VAL __dj_huge_val
...
extern float __dj_huge_valf;
extern long double __dj_huge_vall;
#define HUGE_VALF __dj_huge_valf
#define HUGE_VALL __dj_huge_vall
...
#endif /* _USE_LIBM_MATH_H */
In libm/math.h we have:
extern const union __dmath __infinity;
#define HUGE_VAL (__infinity.d)
1. What's that (the changing of HUGE_VAL) good for?
2. Where are __dj_huge_val{,f,l} really defined?
3. Is it so that HUGE_VAL == INFINITY (which libm/math.h seems to
imply)?
The most important question to me is 3. I'm hacking on adding
INF(INITY) handling to strtod and co.
Right,
MartinS
- Raw text -