21 May
2018
21 May
'18
6:03 p.m.
On 21 May 2018 at 19:08, Thomas Faber <thomas.faber(a)reactos.org> wrote:
@@ -367,8 +367,12 @@ static inline unsigned int wined3d_popcount(unsigned int x)
static inline void wined3d_pause(void) { -#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#if defined(__i386__) || defined(__x86_64__) +#if defined(__GNUC__) __asm__ __volatile__( "rep;nop" : : : "memory" ); +#elif defined(_MSC_VER) + _mm_pause(); +#endif #endif } Doesn't _mm_pause() require an include of the appropriate header? I'm also somewhat tempted to argue for using YieldProcessor().