Commit bf859348 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Use _MCW_RC rounding mask in fesetround and fegetround.

parent 8647f7ba
......@@ -5801,7 +5801,7 @@ int CDECL __fpe_flt_rounds(void)
*/
int CDECL fegetround(void)
{
return _controlfp(0, 0) & _RC_CHOP;
return _controlfp(0, 0) & _MCW_RC;
}
/*********************************************************************
......@@ -5809,9 +5809,9 @@ int CDECL fegetround(void)
*/
int CDECL fesetround(int round_mode)
{
if (round_mode & (~_RC_CHOP))
if (round_mode & (~_MCW_RC))
return 1;
_controlfp(round_mode, _RC_CHOP);
_controlfp(round_mode, _MCW_RC);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment