<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>
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. (Assuming the
exceptions<br>
& subexpressions are defined to be bit-unique.) <br>
<br>
<br>
Then one might write:<br>
<br>
if (FE_EXCEPTIONS( p/q ) & (FE_UNDERFLOW | FE_INVALID | ...))
{whatever}<br>
<br>
or<br>
<br>
x = (FE_EXCEPTIONS( p/q ) & (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:
</font><font size=1 face="sans-serif">"Mike Cowlishaw"
<mfc@speleotrove.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">"'David Hough
CFP'" <pcfp@oakapple.net>, <cfp-interest@ucbtest.org>,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">05/14/2014 06:02 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [Cfp-interest]
exceptional macro</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">cfp-interest-bounces@oakapple.net</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2> <br>
> FE_EXCEPTIONAL( expression or compound statement, <br>
> exception1,
exception2, ...)<br>
<br>
Rather than having the multiple arguments, perhaps it could be simply<br>
<br>
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. (Assuming the
exceptions<br>
& subexpressions are defined to be bit-unique.) <br>
<br>
<br>
Then one might write:<br>
<br>
if (FE_EXCEPTIONS( p/q | FE_UNDERFLOW )) {whatever}<br>
<br>
or<br>
<br>
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>