Buildfix for real.
This commit is contained in:
1 parent
fe3a54d7fd
commit
b34991c4c3
1 file changed
+1
-1
@@ -158,7 +158,7 @@ inline u64 Log2(u64 val)
|
|||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
return 63 - __builtin_clzll(val);
|
return 63 - __builtin_clzll(val);
|
||||||
|
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER) && defined(_M_X64)
|
||||||
unsigned long result = -1;
|
unsigned long result = -1;
|
||||||
_BitScanReverse64(&result, val);
|
_BitScanReverse64(&result, val);
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in new issue
Block a user