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