Piotr Caban : msvcrt: Use _MCW_RC rounding mask in fesetround and fegetround.
Alexandre Julliard
julliard at winehq.org
Wed Jul 21 16:04:30 CDT 2021
Module: wine
Branch: master
Commit: bf859348ade4ff7dde0f587cd6d5ee40115b63cf
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bf859348ade4ff7dde0f587cd6d5ee40115b63cf
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Jul 21 13:21:12 2021 +0200
msvcrt: Use _MCW_RC rounding mask in fesetround and fegetround.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/math.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index ecf5fdce4d8..e61c079f105 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -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;
}
More information about the wine-cvs
mailing list