projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69de7fc
)
[PATCH] LOG2: Make powerpc's __ilog2_u64() take a 64-bit argument
author
David Howells
<dhowells@redhat.com>
Mon, 11 Dec 2006 13:16:05 +0000
(13:16 +0000)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Mon, 11 Dec 2006 20:29:27 +0000
(12:29 -0800)
Make powerpc's __ilog2_u64() take a 64-bit argument.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-powerpc/bitops.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-powerpc/bitops.h
b/include/asm-powerpc/bitops.h
index 0288144ea024aac5882d92bc47d24af01ee6b706..8f757f6246e4effe36e790c811dd0b7939f4d875 100644
(file)
--- a/
include/asm-powerpc/bitops.h
+++ b/
include/asm-powerpc/bitops.h
@@
-209,7
+209,7
@@
int __ilog2_u32(u32 n)
#ifdef __powerpc64__
static inline __attribute__((const))
-int __ilog2_u64(u
32
n)
+int __ilog2_u64(u
64
n)
{
int bit;
asm ("cntlzd %0,%1" : "=r" (bit) : "r" (n));