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:
parent
2218462ff2
commit
68c528d345
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user