[Cfp-interest 1859] Re: DEC_EVAL_METHOD

Jim Thomas jaswthomas at sbcglobal.net
Tue Nov 24 09:45:15 PST 2020



> On Nov 3, 2020, at 8:43 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> Here is an updated N2546.
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com <mailto: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 <http://www.tybor.com/>
> Savers sleep well, investors eat well, spenders work forever.
> 
> 
> Submitter:CFP group
> Submission Date: 2020-??-??
> Document: WG14 N2546b
> Title: N2546b: Missing DEC_EVAL_METHOD
> Reference Documents: N2478, N2546
> 
> Summary: DEC_EVAL_METHOD should be added to some [foot]notes.
> 
> This is a follow-on to N2546 that added DEC_EVAL_METHOD to one footnote. This is being done to address a comment about N2546.
> 
> Since decimal floating-point and DEC_EVAL_METHOD (5.2.4.2.3p2) have been added to C2X, some [foot]notes that mention FLT_EVAL_METHOS should be changed to also mention DEC_EVAL_METHOD.
> 
> 6.5.16.2 Compound assignment
> In the Note in paragraph 5, add after the two occurances of FLT_EVAL_METHOD: (and DEC_EVAL_METHOD).
> 
> 
6.5.16.2 says:

… For example, if Annex F is in effect, the floating types involved have IEC 60559 formats, and FLT_EVAL_METHOD is 0, the equivalent code would be:
….
If FLT_EVAL_METHOD is not 0, then …

How about just making the example be for binary:

… For example, if Annex F is in effect, the floating types involved have IEC 60559 binary formats, and ...
> 6.6 Constant expression
> In the footnote, add after the one occurance of FLT_EVAL_METHOD: (and DEC_EVAL_METHOD).
> 
> F.10.14 Comparison macros
> In paragraph 1, add after the one occurance of FLT_EVAL_METHOD: (and DEC_EVAL_METHOD).
> 
Why parentheses?

Also, in F.10.14, change the reference to “(5.2.4.2.2, 5.2.4.2.3)”.

- Jim Thomas

> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net <mailto:Cfp-interest at oakapple.net>
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest <http://mailman.oakapple.net/mailman/listinfo/cfp-interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20201124/9d3d4be8/attachment-0001.htm>


More information about the Cfp-interest mailing list