In article <11*********************@i3g2000cwc.googlegroups.c om>,
<jo*****@hotmail.comwrote:
>In my c program if I put in the line
_control87(0, EM_ZERODIVIDE |_EM_UNDERFLOW);
I get a floating point underflow exception while running.
>However if I change it to
_control87(EM_ZERODIVIDE |_EM_UNDERFLOW, EM_ZERODIVIDE |_EM_UNDERFLOW);
it runs fine.
>Please help me undertsand whats wrong here and the correct use of
control87 function.
control87() and _control87() are not part of the C standard. Please
consult a newsgroup more specific to the operating system in question.
My speculation, based upon the 87, is that you are doing something
specific to controlling floating point on the Intel floating point
units (80x87's).
--
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)