projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c64dd7
)
Fix an obvious bug in the Log2 stuff that broke SingleSource/UnitTests/2005-05-12...
author
Chris Lattner
<sabre@nondot.org>
Wed, 3 Aug 2005 20:53:19 +0000
(20:53 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 3 Aug 2005 20:53:19 +0000
(20:53 +0000)
last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22630
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/MathExtras.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/MathExtras.h
b/include/llvm/Support/MathExtras.h
index 720ab6333cbf9ec10ee3491445bfc4953de10c0f..ae3f752cc78242c5955aff45c32afba72ca9b19e 100644
(file)
--- 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(u
nsigned
Value) {
+inline unsigned Log2_64(u
int64_t
Value) {
return 63 - CountLeadingZeros_64(Value);
}