Closed Jasper-Bekkers closed 7 months ago
Apart from the ARM64 build, this also affects the i686 build for Windows.
Apart from the ARM64 build, this also affects the i686 build for Windows.
Does that support _mm_pause? If that's the case we can just add the define for i686 as well to that branch.
I think the MSVC preprocessor to check is _M_ARM64
, so
#if defined(_M_ARM64)
__yield();
#else
_mm_pause();
#endif
I went ahead and committed the modified version I suggested, let me know if it works for you
I didn't do a thorough check but this seems to work for my use cases. It's a simple enough change where I just call the
__yield
intrinsic instead of_mm_pause
which was leading to compilation problems.