This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: SUSv2: Can we have MAXFLOAT in <math.h> ?
- From: "H. Peter Anvin" <hpa at zytor dot com>
- To: Shawn Behrens <sbehrens at gmx dot li>
- Cc: newlib at sources dot redhat dot com
- Date: Sun, 07 Jul 2002 19:14:56 -0700
- Subject: Re: SUSv2: Can we have MAXFLOAT in <math.h> ?
- Organization: Zytor Communications
- References: <5.1.0.14.2.20020707095808.015cc728@localhost>
Shawn Behrens wrote:
> Hi,
>
> SUSv2 specifies that MAXFLOAT be part of math.h. See here:
> http://www.opengroup.org/onlinepubs/007908799/xsh/math.h.html
>
> Could that be added, please? Like this, for example:
>
> #define MAXFLOAT ((float)3.40282346638528860e+38)
>
> (Which should match Intel architecture if my sources are right)
>
/* math.h */
#include <limits.h>
#define MAXFLOAT FLT_MAX
... presumably?