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

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
......@@ -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);
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