Fixes compilation errors on MSVC x86 targets (#8823)

This commit is contained in:
Mauro Leggieri
2023-02-25 22:20:28 +03:00
committed by GitHub
parent a65ad0bd9c
commit 90c0633a28
4 changed files with 13 additions and 7 deletions

View File

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