1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

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