<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">JeanHeyd,</div><div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div><div>CFP discussed this at its May meeting. Two problems with the sequence I suggested:</div><div><br></div><div>1. It’s not practical. With three accesses to the floating-point environment, the performance overhead would be worth it only if the result value were reused exceedingly many times. The user could write the code to save the result and then access the saved value, which would avoid performance dependency on support for the attribute and on the optimizer.</div><div><br></div><div>2. The functions accessing the dynamic floating-point environment are allowed to fail (they return zero or nonzero according as they succeed or fail), which undermines the reproducibility of the sequence.</div><div><br></div><div>Changing the computation in current EXAMPLE 3 to <font face="Courier New">sqrt(fabs(x))</font> would avoid “overflow" and “underflow" floating-point exceptions, but not “inexact”. And, it wouldn’t compute a distance.</div><div><br></div><div>Another problem with the current example is that a non-Annex F implementation might not define <font face="Courier New">FE_TONEAREST</font> and there is no rounding mode guaranteed to be supported by all implementations. </div><div><br></div></div>- Jim Thomas<br class="Apple-interchange-newline"><div><br><blockquote type="cite"><div>On Apr 17, 2025, at 7:01 PM, JeanHeyd Meneide <phdofthehouse@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr">On Thu, Apr 17, 2025 Jim Thomas <<a href="mailto:jaswthomas@sbcglobal.net">jaswthomas@sbcglobal.net</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>This matter was on the updated agenda for the CFP meeting this week but we didn’t get to it. We will carry it over to the 12 May CFP meeting and come up with a recommendation. JeanHeyd, is that suitable?</div></blockquote><div><br></div><div> Sounds good to me! Just let me know how it goes.<br><br></div><div>Sincerely,<br></div><div>JeanHeyd</div></div></div>
</div></blockquote></div><br></body></html>