Submitter:CFP group
Submission Date: 2021-01-24
Document: WG14 N2640
Title: N2640: Missing DEC_EVAL_METHOD
Reference Documents: N2596, N2546
Summary: DEC_EVAL_METHOD should be added some places.
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 C23, some notes that mention FLT_EVAL_METHOD should be changed to also mention DEC_EVAL_METHOD.
In the Note in paragraph 5, change
For example, if Annex F is in effect, the floating types involved have IEC 60559 formats, and FLT_EVAL_METHOD is 0, ...to
For example, if Annex F is in effect, the floating types involved have IEC 60559 binary formats, and FLT_EVAL_METHOD is 0, ...
Change
The standard wide evaluation methods characterized by FLT_EVAL_METHOD equal to 1 or 2 (5.2.4.2.2), do not convert operands of relational operators to their semantic types.to:
The standard wide evaluation methods characterized by FLT_EVAL_METHOD and DEC_EVAL_METHOD equal to 1 or 2 (5.2.4.2.2, 5.2.4.2.3), do not convert operands of relational operators to their semantic types.