(UWP) Rewind should now work - issues with the BitScanReverse

codepath for compat_ctz on UWP/WinRT - have not figured out a
solution yet, so just make it default to slowest ctz codepath
for now
This commit is contained in:
twinaphex 2019-04-29 07:06:06 +02:00
parent 4c3e0d44b8
commit 4f8e59a3f8
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ static INLINE int compat_ctz(unsigned x)
{
#if defined(__GNUC__) && !defined(RARCH_CONSOLE)
return __builtin_ctz(x);
#elif _MSC_VER >= 1400 && !defined(_XBOX)
#elif _MSC_VER >= 1400 && !defined(_XBOX) && !defined(__WINRT__)
unsigned long r = 0;
_BitScanReverse((unsigned long*)&r, x);
return (int)r;