[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH 2/4] msvcrt: Don't set SSE control word in _except1.
From:       Piotr Caban <piotr () codeweavers ! com>
Date:       2022-01-31 19:34:40
Message-ID: 1257010a-a731-4cc8-0127-1dac22aeb961 () codeweavers ! com
[Download RAW message or body]

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
---
  dlls/msvcrt/math.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)


["0002-msvcrt-Don-t-set-SSE-control-word-in-_except1.txt" (text/x-patch)]

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index d03b4def801..b12ba3e9585 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -10365,7 +10365,7 @@ double CDECL _except1(DWORD fpe, _FP_OPERATION_CODE op, double arg, double res,
         case 0x300: fpword |= _PC_64; break;
     }
     if (cw & 0x1000) fpword |= _IC_AFFINE;
-    _control87(fpword, 0xffffffff);
+    _setfp(&fpword, _MCW_EM | _MCW_RC | _MCW_PC | _MCW_IC, NULL, 0);
 
     return res;
 }



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic