mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[util] Fix compiling with clang/clang-cl
This commit is contained in:
parent
590834660e
commit
d579f07238
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@ namespace dxvk::bit {
|
|||
}
|
||||
|
||||
inline uint32_t tzcnt(uint32_t n) {
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
return _tzcnt_u32(n);
|
||||
#elif defined(__BMI__)
|
||||
return __tzcnt_u32(n);
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
uint32_t res;
|
||||
uint32_t tmp;
|
||||
asm (
|
||||
|
|
Loading…
Add table
Reference in a new issue