<html><body><p><font size="2" face="sans-serif">Once more into the breech! Responses inline in </font><font size="2" color="#0000FF" face="sans-serif">blue </font><font size="2" face="sans-serif">below.</font><br><br><i>(See attached file: N2823UpdateV6.html)</i><br><br><font size="2" face="sans-serif">Regards,<br><br></font><font size="2" face="sans-serif"><b>Rajan Bhakta</b></font><font size="2" face="sans-serif"><br>z/OS XL C/C++ Compiler Technical Architect<br>ISO C Standards Representative (Canada, USA), PL22.11 Chair<br>C/C++ Compiler Development</font><br><font size="2" face="sans-serif">rbhakta@us.ibm.com</font><br><br><font size="2" face="sans-serif">IBM</font><br><br><img width="16" height="16" src="cid:2__=8FBB0D5CDFED396F8f9e8a93df938690@ibm.com" border="0" alt="Inactive hide details for "Jim Thomas" ---01/19/2022 04:26:12 PM---There’s no need to mention <math.h> in “… when <stdlib.h>"><font size="2" color="#424282" face="sans-serif">"Jim Thomas" ---01/19/2022 04:26:12 PM---There’s no need to mention <math.h> in “… when <stdlib.h>, <fenv.h> and <math.h> are included …”. Th</font><br><br><font size="1" color="#5F5F5F" face="sans-serif">From:        </font><font size="1" face="sans-serif">"Jim Thomas" <jaswthomas@sbcglobal.net></font><br><font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"Rajan Bhakta" <rbhakta@us.ibm.com></font><br><font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">"CFP" <cfp-interest@ucbtest.org></font><br><font size="1" color="#5F5F5F" face="sans-serif">Date:        </font><font size="1" face="sans-serif">01/19/2022 04:26 PM</font><br><font size="1" color="#5F5F5F" face="sans-serif">Subject:        </font><font size="1" face="sans-serif">[EXTERNAL] Re: [Cfp-interest 2346] Updated (V4) N2823</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="1" color="#FFFFFF" face="serif">There’s no need to mention <math.h> in “… when <stdlib.h>, <fenv.h> and <math.h> are included …”. The “inclusive version” of Alternative 1 is missing ", without the requirements to set errno (see 7.5) or modify the floating-point ZjQcmQRYFpfptBannerStart</font><font size="3" face="serif"> </font><br><font size="2" face="Arial"><b>This Message Is From an External Sender </b></font><br><font size="1" face="Arial">This message came from outside your organization. </font><br><font size="1" color="#FFFFFF" face="serif">ZjQcmQRYFpfptBannerEnd</font><font size="3" face="serif"><br>There’s no need to mention <math.h> in “… when <stdlib.h>, <fenv.h> and <math.h> are included …”.</font><br><br><font size="3" color="#0000FF" face="serif">Agreed.</font><br><br><font size="3" face="serif">The “inclusive version” of Alternative 1 is missing ", without the requirements to set errno (see 7.5) or modify the floating-point environment (see 7.6),”.</font><br><font size="3" color="#0000FF" face="serif">I thought that was the discussion we had today. Without requiring errno.h to be included, there is no way to access errno from a user program, meaning we do not need to say anything about setting it as the behaviour is not observable by a program.</font><br><font size="3" color="#0000FF" face="serif">That was what I had thought you meant by "not excluding". i.e. no need to say no setting errno or modifying the floating point environment in the normative text. I did add in a line to mention the floating-point environment to the footnote as you suggested below.</font><br><br><br><font size="3" face="serif">Similar to [?] regarding errno, if the <fenv.h> functions to query flags or modify modes are not required, the implementation does not have to maintain thread local storage for the floating-point environment.</font><br><br><br><font size="3" face="serif">The following would be more parallel, and uses the same wording as for math overflow and underflow in 7.12.1:</font><br>
<ul style="padding-left: 30pt; margin-left: 0px"><font size="3" face="serif">;  if the integer expression math_errhandling & MATH_ERRNO is nonzero, whether errno acquires the value ERANGE is implementation defined; if the integer expression math_errhandling & MATH_ERREXCEPT is nonzero, whether the "underflow" floating-point exception is raised is implementation-defined.</font><br></ul><font size="3" color="#0000FF" face="serif">Where do you see this being added? I can't see using it in alternative 1 as that is intended to have no error handling. Was this a proposal for alternative 2? If so, I like it as it allows implementations to avoid the exception case as well. This however would be a change to the existing definition which requires ERANGE for overflow. I did want to avoid changing the existing specification too much beyond allowing exceptions (as it seems we do for other functions).</font><br><br><font size="3" face="serif">The (unchanged) last sentence in the last change does not match what is in the draft.</font><br><font size="3" color="#0000FF" face="serif">Updated. This is probably also what Fred meant. Sorry Fred, I misunderstood what you were referring to.</font><br><br><br><font size="3" face="serif">- Jim Thomas</font><br>
<ul style="padding-left: 36pt; margin-left: 0px"><font size="3" face="serif">On Jan 19, 2022, at 11:30 AM, Rajan Bhakta <</font><a href="mailto:rbhakta@us.ibm.com"><font size="3" color="#0000FF" face="serif"><u>rbhakta@us.ibm.com</u></font></a><font size="3" face="serif">> wrote:</font><br>
<p><font size="3" face="serif"><i>(See attached file: N2823UpdateV4.html)</i></font><font size="3" face="serif"><br></font><font size="2" face="sans-serif"><br>Regards,<br></font><font size="2" face="sans-serif"><b><br>Rajan Bhakta</b></font><font size="2" face="sans-serif"><br>z/OS XL C/C++ Compiler Technical Architect<br>ISO C Standards Representative (Canada, USA), PL22.11 Chair<br>C/C++ Compiler Development</font><font size="2" color="#0000FF" face="sans-serif"><u><br></u></font><a href="mailto:rbhakta@us.ibm.com"><font size="2" color="#0000FF" face="sans-serif"><u>rbhakta@us.ibm.com</u></font></a><font size="3" face="serif"><br></font><font size="2" face="sans-serif"><br>IBM</font><font size="3" face="serif"><br></font><p><font size="3" face="serif"><N2823UpdateV4.html>_______________________________________________<br>Cfp-interest mailing list</font><font size="3" color="#0000FF" face="serif"><u><br></u></font><a href="mailto:Cfp-interest@oakapple.net"><font size="3" color="#0000FF" face="serif"><u>Cfp-interest@oakapple.net</u></font></a><font size="3" color="#0000FF" face="serif"><u><br></u></font><a href="http://mailman.oakapple.net/mailman/listinfo/cfp-interest"><font size="3" color="#0000FF" face="serif"><u>http://mailman.oakapple.net/mailman/listinfo/cfp-interest</u></font></a></ul><br><br><BR>
<BR>
</body></html>