Commit ab3afe83 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Don't check x87 status word in x86_64 _statusfp.

parent 24fb503e
...@@ -5236,11 +5236,9 @@ static BOOL _setfp_sse( unsigned int *cw, unsigned int cw_mask, ...@@ -5236,11 +5236,9 @@ static BOOL _setfp_sse( unsigned int *cw, unsigned int cw_mask,
#endif #endif
/********************************************************************** /**********************************************************************
* _statusfp2 (MSVCRT.@) * _statusfp2 (MSVCR80.@)
*
* Not exported by native msvcrt, added in msvcr80.
*/ */
#if defined(__i386__) || defined(__x86_64__) #if defined(__i386__)
void CDECL _statusfp2( unsigned int *x86_sw, unsigned int *sse2_sw ) void CDECL _statusfp2( unsigned int *x86_sw, unsigned int *sse2_sw )
{ {
#if defined(__GNUC__) || defined(__clang__) #if defined(__GNUC__) || defined(__clang__)
...@@ -5277,12 +5275,14 @@ void CDECL _statusfp2( unsigned int *x86_sw, unsigned int *sse2_sw ) ...@@ -5277,12 +5275,14 @@ void CDECL _statusfp2( unsigned int *x86_sw, unsigned int *sse2_sw )
unsigned int CDECL _statusfp(void) unsigned int CDECL _statusfp(void)
{ {
unsigned int flags = 0; unsigned int flags = 0;
#if defined(__i386__) || defined(__x86_64__) #if defined(__i386__)
unsigned int x86_sw, sse2_sw; unsigned int x86_sw, sse2_sw;
_statusfp2( &x86_sw, &sse2_sw ); _statusfp2( &x86_sw, &sse2_sw );
/* FIXME: there's no definition for ambiguous status, just return all status bits for now */ /* FIXME: there's no definition for ambiguous status, just return all status bits for now */
flags = x86_sw | sse2_sw; flags = x86_sw | sse2_sw;
#elif defined(__x86_64__)
_setfp_sse(NULL, 0, &flags, 0);
#elif defined(__aarch64__) #elif defined(__aarch64__)
ULONG_PTR fpsr; ULONG_PTR fpsr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment