(0004252)
geoffclare (manager)
2019-02-14 17:16
|
On page 611 line 21228 change atan() to atan2()
On page 611 line 21231 section atan2(), change:
If the IEC 60559 Floating-Point option is supported, y/x should be returned.
to:
If the IEC 60559 Floating-Point option is supported and the correct value would cause underflow, y/x should be returned. |
(0004255)
geoffclare (manager)
2019-02-15 10:19
edited on: 2019-02-15 10:22
|
Looking at this further, I have realised that the preceding paragraph about underflow should not have MX shading. It derives from C99 7.12.1, not from Annex F, and so is not conditional on IEC 60559 Floating-Point.
It also occurred to me that this problem might exist elsewhere that MXX shading is used, and I found one such place:
page 776 line 26321 section erf()
(and this one correctly does not have MX shading on the preceding paragraph).
In both places the MXX shaded text should just be joined to the preceding unshaded paragraph.
New proposed resolution:
On page 611 line 21228 section atan2(), change:[MX]If the correct value would cause underflow, a range error may occur, and atan(), atan2f(), and atan2l() shall return an implementation-defined value no greater in magnitude than DBL_MIN, FLT_MIN, and LDBL_MIN, respectively.[/MX]
[MXX]If the IEC 60559 Floating-Point option is supported, y/x should be returned.[/MXX] to:If the correct value would cause underflow, a range error may occur, and atan2(), atan2f(), and atan2l() shall return an implementation-defined value no greater in magnitude than DBL_MIN, FLT_MIN, and LDBL_MIN, respectively. [MXX]If the IEC 60559 Floating-Point option is supported, y/x should be returned.[/MXX]
On page 776 line 26318 section erf(), join the following two paragraphs:If the correct value would cause underflow, a range error may occur, and erf(), erff(), and erfl() shall return an implementation-defined value no greater in magnitude than DBL_MIN, FLT_MIN, and LDBL_MIN, respectively.
[MXX]If the IEC 60559 Floating-Point option is supported, 2 * x/sqrt(π) should be returned.[/MXX] to form a single paragraph.
|