Piotr Caban : msvcrt: Disable sse2 math functions in older versions of runtime.
Alexandre Julliard
julliard at winehq.org
Fri Feb 5 16:50:49 CST 2021
Module: wine
Branch: master
Commit: 4ae82fd0077dcc1ef3a6d07dd2f369c32e1d8ba0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4ae82fd0077dcc1ef3a6d07dd2f369c32e1d8ba0
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri Feb 5 16:06:50 2021 +0100
msvcrt: Disable sse2 math functions in older versions of runtime.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/math.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index d0cc87d2c8e..bebd3e2cef9 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -71,7 +71,12 @@ static const struct unix_funcs *unix_funcs;
void msvcrt_init_math( void *module )
{
- sse2_supported = sse2_enabled = IsProcessorFeaturePresent( PF_XMMI64_INSTRUCTIONS_AVAILABLE );
+ sse2_supported = IsProcessorFeaturePresent( PF_XMMI64_INSTRUCTIONS_AVAILABLE );
+#if _MSVCR_VER <=71
+ sse2_enabled = FALSE;
+#else
+ sse2_enabled = sse2_supported;
+#endif
__wine_init_unix_lib( module, DLL_PROCESS_ATTACH, NULL, &unix_funcs );
}
More information about the wine-cvs
mailing list