attributes: Don't try to use _BitScanReverse64 on MSVC/ARM

Despite what MSDN says, this intrinsic doesn't exist for ARM,
only for ARM64.
This commit is contained in:
Martin Storsjö
2018-10-19 11:51:59 +03:00
parent 9dcdf20ce9
commit 227b7eae7a
+1 -1
View File
@@ -87,7 +87,7 @@ static inline int clz(const unsigned int mask) {
return (31 - leading_zero);
}
#ifndef _M_IX86
#ifdef _WIN64
static inline int clzll(const unsigned long long mask) {
unsigned long leading_zero = 0;
_BitScanReverse64(&leading_zero, mask);