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

last night.

llvm-svn: 22630
This commit is contained in:
Chris Lattner 2005-08-03 20:53:19 +00:00
parent 8191442548
commit 1d465e8925
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}