Skip to content

Commit

Permalink
[PATCH] LOG2: Make powerpc's __ilog2_u64() take a 64-bit argument
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and Linus Torvalds committed Dec 11, 2006
1 parent 69de7fc commit 0224169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-powerpc/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ int __ilog2_u32(u32 n)

#ifdef __powerpc64__
static inline __attribute__((const))
int __ilog2_u64(u32 n)
int __ilog2_u64(u64 n)
{
int bit;
asm ("cntlzd %0,%1" : "=r" (bit) : "r" (n));
Expand Down

0 comments on commit 0224169

Please sign in to comment.