This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simplify HUGE_VAL definitions [committed]


On Thu, 31 Aug 2017, Zack Weinberg wrote:

> > +/* Value returned on overflow.  On all IEEE754 machines, this is
> > +   +Infinity.  */
> 
> suggested wording is
> 
> /* Value returned on overflow; with IEEE 754 floating point, this is
>    +Infinity, otherwise the largest representable positive value.
> 
>    GCC >=3.3 and compatible compilers provide an intrinsic function,
>    usable in constant expressions, that gives this value.  Otherwise
>    use a numeric constant larger than the largest representable finite
>    value in any supported floating-point format; in the normal
>    rounding mode, ISO C requires this to be rounded to +Infinity, if
>    it exists, or else to the largest representable positive value.
>    (The intrinsic function is preferred because it will not produce
>    warnings about overflow and is not affected by rounding mode.)  */

"the rounding mode", in the last line.  OK with that change.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]