<html><body><p><font size="2">Mike,</font><br><br><font size="2">I don't remember defining the sameQuantum operation. </font><br><font size="2">I think it was to compare exponents or as a compare units instruction </font><br><font size="2">and used it to determine whether the result had the expected quantum.  </font><br><font size="2">This was before IBM architecture came up with a flag for quantum exceptions and</font><br><font size="2">before we figured out we could test the most significant digit for non-zero.</font><br><font size="2">So if we are just testing a result for correct units, we don't want to trigger exceptions,</font><br><font size="2">though we may want to force it into the correct units.</font><br><font size="2">An example is we have a table of data to output that should have the units of 10^-2, we</font><br><font size="2">test each data item before converting the significand to BCD and outputting the</font><br><font size="2">data.  Probably figured SNaNs would have already been seen by this point and</font><br><font size="2">not a point in the program where we want to take any exceptions.</font><br><font size="2"><br>Regards,<br>Eric<br><br><br>eschwarz@us.ibm.com</font><br><br><tt><font size="2">&quot;Mike Cowlishaw&quot; &lt;mfc@speleotrove.com&gt; wrote on 09/17/2018 06:47:19 AM:<br><br>&gt; From: &quot;Mike Cowlishaw&quot; &lt;mfc@speleotrove.com&gt;</font></tt><br><tt><font size="2">&gt; To: &quot;'Jim Thomas'&quot; &lt;jaswthomas@sbcglobal.net&gt;</font></tt><br><tt><font size="2">&gt; Cc: &lt;cfp-interest@oakapple.net&gt;, &quot;'Eric Schwarz'&quot; &lt;eschwarz@us.ibm.com&gt;</font></tt><br><tt><font size="2">&gt; Date: 09/17/2018 06:47 AM</font></tt><br><tt><font size="2">&gt; Subject: RE: [Cfp-interest] Not trigger sNaN</font></tt><br><tt><font size="2">&gt; <br>&gt; I believe it was, but I do not recall the reasoning. &nbsp;Eric Schwartz might<br>&gt; remember; cc:ing him ...<br>&gt; <br>&gt; Mike <br>&gt; <br>&gt; &gt; -----Original Message-----<br>&gt; &gt; From: Jim Thomas [<a href="mailto:jaswthomas@sbcglobal.net">mailto:jaswthomas@sbcglobal.net</a>] <br>&gt; &gt; Sent: 16 September 2018 16:40<br>&gt; &gt; To: Mike Cowlishaw<br>&gt; &gt; Cc: cfp-interest@oakapple.net<br>&gt; &gt; Subject: Re: [Cfp-interest] Not trigger sNaN<br>&gt; &gt; <br>&gt; &gt; Mike,<br>&gt; &gt; <br>&gt; &gt; 754 seems to say sameQuantum(sNaN, qNaN) is true with no <br>&gt; &gt; exception. Just double checking that it is as intended.<br>&gt; &gt; <br>&gt; &gt; Jim<br>&gt; &gt; <br>&gt; &gt; &gt; On Aug 28, 2018, at 7:16 PM, Fred J. Tydeman <br>&gt; &gt; &lt;tydeman@tybor.com&gt; wrote:<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; On Tue, 28 Aug 2018 13:13:45 -0500 Rajan Bhakta wrote:<br>&gt; &gt; &gt;&gt; <br>&gt; &gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; *AI*: Fred: See which other functions have the need to not <br>&gt; &gt; &gt;&gt; trigger signaling nans but are functions (need to be macros).<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; 754 Operations that shall not trigger an sNaN (signal invalid):<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; &quot;*&quot; are functions in C<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; ...<br>&gt; &gt; &gt; sameQuantum() = samequantum()*<br>&gt; &gt; &gt; <br>&gt; &gt; <br>&gt; <br></font></tt><BR>
</body></html>