diff options
author | David Howells <dhowells@redhat.com> | 2006-12-11 08:16:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-11 15:29:27 -0500 |
commit | 022416967a814aa1b3a9476a842c0947a1a9d784 (patch) | |
tree | f1a8b59dca65ed994b2de1c405eb458f9d92bdd0 /include/asm-powerpc/bitops.h | |
parent | 69de7fc037c8cda6fd20a632d39461bf9d42b927 (diff) |
[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 <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-powerpc/bitops.h')
-rw-r--r-- | include/asm-powerpc/bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/bitops.h b/include/asm-powerpc/bitops.h index 0288144ea024..8f757f6246e4 100644 --- a/include/asm-powerpc/bitops.h +++ b/include/asm-powerpc/bitops.h | |||
@@ -209,7 +209,7 @@ int __ilog2_u32(u32 n) | |||
209 | 209 | ||
210 | #ifdef __powerpc64__ | 210 | #ifdef __powerpc64__ |
211 | static inline __attribute__((const)) | 211 | static inline __attribute__((const)) |
212 | int __ilog2_u64(u32 n) | 212 | int __ilog2_u64(u64 n) |
213 | { | 213 | { |
214 | int bit; | 214 | int bit; |
215 | asm ("cntlzd %0,%1" : "=r" (bit) : "r" (n)); | 215 | asm ("cntlzd %0,%1" : "=r" (bit) : "r" (n)); |