1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[util] Implement bitmask iterator on non-x86 platforms

This commit is contained in:
Joshua Ashton 2022-09-13 18:52:08 +01:00 committed by Joshie
parent 2218462ff2
commit 68c528d345

View File

@ -353,7 +353,7 @@ namespace dxvk::bit {
}
uint32_t operator * () const {
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__BMI__)
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__BMI__) && defined(DXVK_ARCH_X86)
uint32_t res;
asm ("tzcnt %1,%0"
: "=r" (res)