[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h
Jeff Cohen
jeffc at jolt-lang.org
Thu Oct 6 22:29:37 PDT 2005
Changes in directory llvm/include/llvm/Support:
MathExtras.h updated: 1.26 -> 1.27
---
Log message:
Remove prolific source of VC++ truncation warnings.
---
Diffs of the changes: (+2 -1)
MathExtras.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.26 llvm/include/llvm/Support/MathExtras.h:1.27
--- llvm/include/llvm/Support/MathExtras.h:1.26 Tue Aug 30 19:25:01 2005
+++ llvm/include/llvm/Support/MathExtras.h Fri Oct 7 00:29:25 2005
@@ -184,7 +184,8 @@
// CountPopulation_64 - this function counts the number of set bits in a value,
// (64 bit edition.)
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,
More information about the llvm-commits
mailing list