ddraw: Use GNU assembly syntax on clang x86_64 MSVC target.

This commit is contained in:
Jacek Caban 2024-05-13 12:25:37 +02:00 committed by Alexandre Julliard
parent fe6801930e
commit eca2e8bf6c

View file

@ -42,10 +42,10 @@ const GUID IID_D3DDEVICE_WineD3D = {
static inline void set_fpu_control_word(WORD fpucw) static inline void set_fpu_control_word(WORD fpucw)
{ {
#if defined(__i386__) && defined(__GNUC__) #if defined(__i386__) && defined(_MSC_VER)
__asm__ volatile ("fldcw %0" : : "m" (fpucw));
#elif defined(__i386__) && defined(_MSC_VER)
__asm fldcw fpucw; __asm fldcw fpucw;
#elif defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__) && (defined(__GNUC__) || defined(__clang__)))
__asm__ volatile ("fldcw %0" : : "m" (fpucw));
#endif #endif
} }
@ -53,10 +53,10 @@ static inline WORD d3d_fpu_setup(void)
{ {
WORD oldcw; WORD oldcw;
#if defined(__i386__) && defined(__GNUC__) #if defined(__i386__) && defined(_MSC_VER)
__asm__ volatile ("fnstcw %0" : "=m" (oldcw));
#elif defined(__i386__) && defined(_MSC_VER)
__asm fnstcw oldcw; __asm fnstcw oldcw;
#elif defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__) && (defined(__GNUC__) || defined(__clang__)))
__asm__ volatile ("fnstcw %0" : "=m" (oldcw));
#else #else
static BOOL warned = FALSE; static BOOL warned = FALSE;
if(!warned) if(!warned)