summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-03 20:53:19 +0000
committerChris Lattner <sabre@nondot.org>2005-08-03 20:53:19 +0000
commit1d465e8925b4c9e18d15f5d746c462a7c17f14a6 (patch)
tree703a918632a681df6bd4378b1a9e066c686066eb
parent8191442548fc31a185481bef816428d8b58b3e96 (diff)
downloadbcm5719-llvm-1d465e8925b4c9e18d15f5d746c462a7c17f14a6.tar.gz
bcm5719-llvm-1d465e8925b4c9e18d15f5d746c462a7c17f14a6.zip
Fix an obvious bug in the Log2 stuff that broke SingleSource/UnitTests/2005-05-12-Int64ToFP
last night. llvm-svn: 22630
-rw-r--r--llvm/include/llvm/Support/MathExtras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index 720ab6333cb..ae3f752cc78 100644
--- a/llvm/include/llvm/Support/MathExtras.h
+++ b/llvm/include/llvm/Support/MathExtras.h
@@ -164,7 +164,7 @@ inline unsigned Log2_32(unsigned Value) {
// 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);
}
OpenPOWER on IntegriCloud