diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-03 20:53:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-03 20:53:19 +0000 |
commit | 2be12faabb3ce2d2d3979c73ac65d466fdea5ec5 (patch) | |
tree | 286ef7e3c020e1d4ac4821a1052b989cd31bef07 /include/llvm/Support/MathExtras.h | |
parent | 4c64dd7977bc676399df0d5d2bf8016a3242780e (diff) |
Fix an obvious bug in the Log2 stuff that broke SingleSource/UnitTests/2005-05-12-Int64ToFP
last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 720ab6333c..ae3f752cc7 100644 --- a/include/llvm/Support/MathExtras.h +++ b/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); } |