[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

Chris Lattner lattner at cs.uiuc.edu
Wed Aug 3 13:53:30 PDT 2005



Changes in directory llvm/include/llvm/Support:

MathExtras.h updated: 1.22 -> 1.23
---
Log message:

Fix an obvious bug in the Log2 stuff that broke SingleSource/UnitTests/2005-05-12-Int64ToFP
last night.



---
Diffs of the changes:  (+1 -1)

 MathExtras.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.22 llvm/include/llvm/Support/MathExtras.h:1.23
--- llvm/include/llvm/Support/MathExtras.h:1.22	Wed Aug  3 11:53:58 2005
+++ llvm/include/llvm/Support/MathExtras.h	Wed Aug  3 15:53:19 2005
@@ -164,7 +164,7 @@
 
 // Log2_64 - This function returns the floor log base 2 of the specified value, 
 // -1 if the value is zero. (64 bit edition.)
-inline unsigned Log2_64(unsigned Value) {
+inline unsigned Log2_64(uint64_t Value) {
     return 63 - CountLeadingZeros_64(Value);
 }
 






More information about the llvm-commits mailing list