mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
ddraw: Use GNU assembly syntax on clang x86_64 MSVC target.
This commit is contained in:
parent
fe6801930e
commit
eca2e8bf6c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue