This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: V3 PATCH: numeric_limits<> support, fix PR/3865
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~