[Cfp-interest 1680] Re: intmax_t removal

Jim Thomas jaswthomas at sbcglobal.net
Fri Jun 26 14:04:24 PDT 2020



> On Jun 26, 2020, at 7:48 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> On Thu, 25 Jun 2020 17:37:30 -0700 Jim Thomas wrote:
>> 
>> For large enough width, HUGE_VAL could be an in range value. How about returning the value of x if a NaN is not available?
> 
> How can HUGE_VAL be in range and x not be in range?

For the functions that round to unsigned, negative integers are not in range.

- Jim Thomas

> 
> Since we have 6 HUGE_VALs, we need some shorthand to cover all six.
> See for example nuexup() and nextdown().
> Also, overflow in 7.12.1
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com      Testing, numerics, programming
> +1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
> Sample C99+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.




More information about the Cfp-interest mailing list