<font size=2 face="sans-serif">Just to make sure we're all on the same
page after your correction, we also have to move the parenthesis right?</font>
<br>
<br><font size=2 face="sans-serif">i.e. </font>
<br><tt><font size=2>Rather than having the multiple arguments, perhaps
it could be simply<br>
<br>
 &nbsp;FE_EXCEPTIONS( expression )<br>
<br>
which returns the exceptions raised in the evaluation of the expression
(or<br>
compound statement if that's allowed), ORed together. &nbsp;(Assuming the
exceptions<br>
&amp; subexpressions are defined to be bit-unique.) <br>
<br>
<br>
Then one might write:<br>
<br>
 &nbsp;if (FE_EXCEPTIONS( p/q ) &amp; (FE_UNDERFLOW | FE_INVALID | ...))
{whatever}<br>
<br>
or<br>
<br>
 &nbsp;x = (FE_EXCEPTIONS( p/q ) &amp; (FE_UNDERFLOW | FE_INVALID | ...))
? a : sNAN ;<br>
<br>
etc.</font></tt>
<br><font size=2 face="sans-serif">Regards,<br>
<br>
Rajan Bhakta<br>
z/OS XL C/C++ Compiler Technical Architect<br>
ISO C Standards Representative for Canada<br>
C Compiler Development<br>
Contact: rbhakta@us.ibm.com, Rajan Bhakta/Houston/IBM</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Mike Cowlishaw&quot;
&lt;mfc@speleotrove.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;'David Hough
CFP'&quot; &lt;pcfp@oakapple.net&gt;, &lt;cfp-interest@ucbtest.org&gt;,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">05/14/2014 06:02 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Cfp-interest]
exceptional macro</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">cfp-interest-bounces@oakapple.net</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>&nbsp;<br>
&gt; &nbsp;FE_EXCEPTIONAL( expression or compound statement, <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exception1,
exception2, ...)<br>
<br>
Rather than having the multiple arguments, perhaps it could be simply<br>
<br>
 &nbsp;FE_EXCEPTIONS( expression )<br>
<br>
which returns the exceptions raised in the evaluation of the expression
(or<br>
compound statement if that's allowed), ORed together. &nbsp;(Assuming the
exceptions<br>
&amp; subexpressions are defined to be bit-unique.) <br>
<br>
<br>
Then one might write:<br>
<br>
 &nbsp;if (FE_EXCEPTIONS( p/q | FE_UNDERFLOW )) {whatever}<br>
<br>
or<br>
<br>
 &nbsp;x = FE_EXCEPTIONS( a=p/q | FE_UNDERFLOW ) ? a : sNAN ;<br>
<br>
etc.<br>
<br>
Mike<br>
<br>
_______________________________________________<br>
Cfp-interest mailing list<br>
Cfp-interest@oakapple.net<br>
</font></tt><a href="http://mailman.oakapple.net/mailman/listinfo/cfp-interest"><tt><font size=2>http://mailman.oakapple.net/mailman/listinfo/cfp-interest</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>