mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
69de7fc037
commit
022416967a
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue