V3 PATCH: numeric_limits<> support, fix PR/3865

Richard Henderson rth@redhat.com
Tue Sep 3 13:40:00 GMT 2002


On Tue, Sep 03, 2002 at 01:32:59PM -0400, Paul Koning wrote:
> From the name I would expect __builtin_huge_val() to return a large
> finite value, not infinite...

It's a historic name.


7.12 Mathematics <math.h>

3    The macro HUGE_VAL expands to a positive double constant expression,
     not necessarily representable as a float. The macros
		HUGE_VALF
		HUGE_VALL
     are respectively float and long double analogs of HUGE_VAL.191)

191) HUGE_VAL, HUGE_VALF, and HUGE_VALL can be positive infinities in an
     implementation that supports infinities.




r~



More information about the Libstdc++ mailing list