[UCRT] Use GCC inline assembler

Clang requires the asm to be split, otherwise it complains that it doesn't have enough registers.
This commit is contained in:
Timo Kreuzer 2024-10-13 10:56:28 +03:00
parent 0cdde63c57
commit faedd8ff75
3 changed files with 54 additions and 2 deletions

View file

@ -130,7 +130,11 @@ _ACRTIMP int __cdecl fesetround(_In_ int _Round);
// next floating point instruction. If we're using /arch:IA32,
// force the exception to be raised immediately:
#if defined _M_IX86 && _M_IX86_FP == 0 && !defined _M_HYBRID_X86_ARM64
#ifdef _MSC_VER
__asm fwait;
#else
__asm__ __volatile__("fwait");
#endif
#endif
}
}