This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: HUGE is missing in math.h
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 28 Jun 2005 09:52:42 +0200
- Subject: Re: HUGE is missing in math.h
- References: <83d0063b0506260937400a44d3@mail.gmail.com> <20050627074319.GA383@calimero.vinschen.de> <42C06EAE.60207@redhat.com>
- Reply-to: newlib at sources dot redhat dot com
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)
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.