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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user