[Cfp-interest 1830] Re: pow() and signaling NaN
Jim Thomas
jaswthomas at sbcglobal.net
Thu Oct 29 11:01:42 PDT 2020
F.2.1 #3 says “… This annex uses the term NaN, unless explicitly qualified, to denote quiet NaN …”.
- Jim Thomas
> On Oct 28, 2020, at 9:27 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
>
> IEEE-754 has
> pow (+1, y) is 1 for any y (even a quiet NaN)
> pow (x, ±0) is 1 if x is not a signaling NaN
>
>
> C23 F.10.4.5 has:
> --pow(+1, y) returns 1 for any y, even a NaN.
> -- pow(x, ±0) returns 1 for any x, even a NaN.
>
>
> I am not sure what WG14's convention is on
> NAN vs quiet NAN vs signaling NAN
>
> Do we need to add 'quiet' before NaN for pow()?
>
>
> ---
> 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.
>
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest
More information about the Cfp-interest
mailing list