提交 02241696 编写于 作者: D David Howells 提交者: Linus Torvalds

[PATCH] LOG2: Make powerpc's __ilog2_u64() take a 64-bit argument

Make powerpc's __ilog2_u64() take a 64-bit argument.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 69de7fc0
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册