mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Remove prolific source of VC++ truncation warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23657 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68d98e0bdc
commit
cadee65f54
@ -184,7 +184,8 @@ inline unsigned CountPopulation_32(unsigned Value) {
|
|||||||
// CountPopulation_64 - this function counts the number of set bits in a value,
|
// CountPopulation_64 - this function counts the number of set bits in a value,
|
||||||
// (64 bit edition.)
|
// (64 bit edition.)
|
||||||
inline unsigned CountPopulation_64(uint64_t Value) {
|
inline unsigned CountPopulation_64(uint64_t Value) {
|
||||||
return CountPopulation_32(Value >> 32) + CountPopulation_32(Value);
|
return CountPopulation_32(unsigned(Value >> 32)) +
|
||||||
|
CountPopulation_32(unsigned(Value));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log2_32 - This function returns the floor log base 2 of the specified value,
|
// Log2_32 - This function returns the floor log base 2 of the specified value,
|
||||||
|
Loading…
Reference in New Issue
Block a user