Article ID: 119458
Article Last Modified on 12/1/2003
/* initial Control Word value */
#ifdef _M_IX86
#define _CW_DEFAULT ( _RC_NEAR + _PC_64 + _EM_INVALID + _EM_ZERODIVIDE +
_EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT )
#endif
You might expect that if you call _fpreset() and then call _controlfp(0,0)
to get the control word, that the control word will be _CW_DEFAULT;
however, that is not the case. _CW_DEFAULT does not actually correspond to
the default value of the x87 control word. The difference is that
_CW_DEFAULT does not mask the denormal exception. The _fpreset() routine
masks all exceptions, including denormal.
Additional query words: kbinf 1.00 1.50 2.00 2.10
Keywords: kbcrt KB119458