HUGE is missing in math.h
Tue Jun 28 09:19:00 GMT 2005
On Tue, 2005-06-28 at 09:52 +0200, Corinna Vinschen wrote:
> On Jun 27 17:25, Jeff Johnston wrote:
> > Corinna Vinschen wrote:
> > >However, other definitions are missing in math.h, like HUGE_VALF,
> > >HUGE_VALL, INFINITY and NAN.
> > I'll take a look at adding these unless you want to. HUGE_VALL is the
> > only one that is difficult.
> Would it be a problem to use the Mingw definitions?
> #define NAN (0.0F/0.0F)
> #define HUGE_VALF (1.0F/0.0F)
> #define HUGE_VALL (1.0L/0.0L)
> #define INFINITY (1.0F/0.0F)
Are you sure none of these "divisions by zero" doesn't result into an
exception on some architectures?
More information about the Newlib