mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Wrapping __popcnt64 for MSVC so that it's only used on 64-bit builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172670 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5db391c67d
commit
69877d6db9
@ -317,7 +317,7 @@ inline unsigned CountPopulation_32(uint32_t Value) {
|
||||
inline unsigned CountPopulation_64(uint64_t Value) {
|
||||
#if __GNUC__ >= 4
|
||||
return __builtin_popcountll(Value);
|
||||
#elif defined(_MSC_VER)
|
||||
#elif defined(_MSC_VER) && defined(_M_X64)
|
||||
return __popcnt64(Value);
|
||||
#else
|
||||
uint64_t v = Value - ((Value >> 1) & 0x5555555555555555ULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user