Commit 227b7eae authored by Martin Storsjö's avatar Martin Storsjö
Browse files

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

Despite what MSDN says, this intrinsic doesn't exist for ARM,
only for ARM64.
parent 9dcdf20c
Pipeline #1130 passed with stage
in 2 minutes and 1 second
...@@ -87,7 +87,7 @@ static inline int clz(const unsigned int mask) { ...@@ -87,7 +87,7 @@ static inline int clz(const unsigned int mask) {
return (31 - leading_zero); return (31 - leading_zero);
} }
#ifndef _M_IX86 #ifdef _WIN64
static inline int clzll(const unsigned long long mask) { static inline int clzll(const unsigned long long mask) {
unsigned long leading_zero = 0; unsigned long leading_zero = 0;
_BitScanReverse64(&leading_zero, mask); _BitScanReverse64(&leading_zero, mask);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment