Fixes compilation errors on MSVC x86 targets (#8823)
This commit is contained in:
@@ -151,7 +151,7 @@ inline LINALG_HD int Popc(uint64_t v) {
|
||||
return __popcll(v);
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
return __builtin_popcountll(v);
|
||||
#elif defined(_MSC_VER)
|
||||
#elif defined(_MSC_VER) && _defined(_M_X64)
|
||||
return __popcnt64(v);
|
||||
#else
|
||||
return NativePopc(v);
|
||||
|
||||
Reference in New Issue
Block a user