msvcrt: Disable sse2 math functions in older versions of runtime.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0cd71776f4
commit
4ae82fd007
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue