F.3 操作,9 列出了 5 个 FE_ 宏,后跟 4 个 IEEE 754 舍入方向属性,以 "respectively" 结尾:错误?
F.3 Operations, 9 lists 5 FE_ macros followed by 4 IEEE 754 rounding-direction attributes ending up with "respectively": mistake?
N2479 C17..C2x 工作草案 — 2020 年 2 月 5 日 ISO/IEC 9899:202x (E):
F.3 操作,9:
The macros (7.6) FE_DOWNWARD, FE_TONEAREST, FE_TONEARESTFROMZERO, FE_TOWARDZERO, and
FE_UPWARD, which are used in conjunction with the fegetround and fesetround functions
and the FENV_ROUND pragma, represent the IEC 60559 rounding-direction attributes roundTowardNegative, roundTiesToEven, roundTowardZero, and roundTowardPositive, respectively. Support for the roundTiesToAway attribute for binary floating-point arithmetic, and hence for the FE_TONEARESTFROMZERO macro, is optional.
让我们回顾一下:
C IEEE 754 Comment
FE_DOWNWARD roundTowardNegative
FE_TONEAREST roundTiesToEven
FE_TONEARESTFROMZERO roundTiesToAway roundTiesToAway is missing in the sentence #1
FE_TOWARDZERO roundTowardZero
FE_UPWARD roundTowardPositive
问题:第 1 句列出了 5 个 FE_
宏,后跟 4 个以“分别”结尾的 IEEE 754 舍入方向属性。
是一个错误/错字?有最新发布的标准版本的人可以检查一下吗?
http://www.open-std.org/jtc1/sc22/wg14/www/projects 有一个更新的草案,N2596,日期为 2020 年 12 月 11 日。它对文本进行了更正,在其所属的位置插入了 roundTiesToAway
:
The macros (7.6) FE_DOWNWARD , FE_TONEAREST , FE_TONEARESTFROMZERO , FE_TOWARDZERO , and
FE_UPWARD , which are used in conjunction with the fegetroundand fesetroundfunctions and the
FENV_ROUND pragma, represent the IEC 60559 rounding-direction attributes roundTowardNegative,
roundTiesToEven, roundTiesToAway, roundTowardZero, and roundTowardPositive, respectively,
for binary floating-point arithmetic. Support for the roundTiesToAway attribute for binary floating-
point arithmetic, and hence for the FE_TONEARESTFROMZERO macro, is optional.
很明显这只是一个编辑错误。
N2479 C17..C2x 工作草案 — 2020 年 2 月 5 日 ISO/IEC 9899:202x (E): F.3 操作,9:
The macros (7.6) FE_DOWNWARD, FE_TONEAREST, FE_TONEARESTFROMZERO, FE_TOWARDZERO, and FE_UPWARD, which are used in conjunction with the fegetround and fesetround functions and the FENV_ROUND pragma, represent the IEC 60559 rounding-direction attributes roundTowardNegative, roundTiesToEven, roundTowardZero, and roundTowardPositive, respectively. Support for the roundTiesToAway attribute for binary floating-point arithmetic, and hence for the FE_TONEARESTFROMZERO macro, is optional.
让我们回顾一下:
C IEEE 754 Comment
FE_DOWNWARD roundTowardNegative
FE_TONEAREST roundTiesToEven
FE_TONEARESTFROMZERO roundTiesToAway roundTiesToAway is missing in the sentence #1
FE_TOWARDZERO roundTowardZero
FE_UPWARD roundTowardPositive
问题:第 1 句列出了 5 个 FE_
宏,后跟 4 个以“分别”结尾的 IEEE 754 舍入方向属性。
是一个错误/错字?有最新发布的标准版本的人可以检查一下吗?
http://www.open-std.org/jtc1/sc22/wg14/www/projects 有一个更新的草案,N2596,日期为 2020 年 12 月 11 日。它对文本进行了更正,在其所属的位置插入了 roundTiesToAway
:
The macros (7.6) FE_DOWNWARD , FE_TONEAREST , FE_TONEARESTFROMZERO , FE_TOWARDZERO , and FE_UPWARD , which are used in conjunction with the fegetroundand fesetroundfunctions and the FENV_ROUND pragma, represent the IEC 60559 rounding-direction attributes roundTowardNegative, roundTiesToEven, roundTiesToAway, roundTowardZero, and roundTowardPositive, respectively, for binary floating-point arithmetic. Support for the roundTiesToAway attribute for binary floating- point arithmetic, and hence for the FE_TONEARESTFROMZERO macro, is optional.
很明显这只是一个编辑错误。