msvcrt: Don't clear x87 status word x86_64 _clearfp.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2021-08-04 18:04:48 +02:00 committed by Alexandre Julliard
parent ab3afe8347
commit f46ef017cd
1 changed files with 3 additions and 1 deletions

View File

@ -5315,7 +5315,7 @@ unsigned int CDECL _statusfp(void)
unsigned int CDECL _clearfp(void)
{
unsigned int flags = 0;
#if (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__)
unsigned long fpword;
__asm__ __volatile__( "fnstsw %0; fnclex" : "=m" (fpword) );
@ -5333,6 +5333,8 @@ unsigned int CDECL _clearfp(void)
_setfp_sse(NULL, 0, &sse_sw, _MCW_EM);
flags |= sse_sw;
}
#elif defined(__x86_64__)
_setfp_sse(NULL, 0, &flags, _MCW_EM);
#elif defined(__aarch64__)
ULONG_PTR fpsr;