mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Fix tzcnt return value when source value is 0
This commit is contained in:
parent
2caf346fbb
commit
2aa6b04fd9
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue