1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[util] Fix tzcnt on ARM64 + Clang

This needed brackets around this conditional.
This commit is contained in:
Joshua Ashton 2022-10-05 19:01:05 +01:00
parent ab622760a0
commit fa45e5838e

View File

@ -104,7 +104,7 @@ namespace dxvk::bit {
return _tzcnt_u64(n);
#elif defined(DXVK_ARCH_X86_64) && defined(__BMI__)
return __tzcnt_u64(n);
#elif defined(DXVK_ARCH_X86_64) && defined(__GNUC__) || defined(__clang__)
#elif defined(DXVK_ARCH_X86_64) && (defined(__GNUC__) || defined(__clang__))
uint64_t res;
uint64_t tmp;
asm (