mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 04:24:11 +01:00
[dxvk] Fix tzcnt return value when source value is 0
This commit is contained in:
parent
2caf346fbb
commit
2aa6b04fd9
@ -29,8 +29,8 @@ namespace dxvk::bit {
|
||||
uint32_t res;
|
||||
uint32_t tmp;
|
||||
asm (
|
||||
"xor %1, %1;"
|
||||
"bsf %2, %0;"
|
||||
"mov $32, %1;"
|
||||
"bsf %2, %0;"
|
||||
"cmovz %1, %0;"
|
||||
: "=&r" (res), "=&r" (tmp)
|
||||
: "r" (n));
|
||||
|
Loading…
Reference in New Issue
Block a user