X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-alpha%2Fbitops.h;h=87c43e519748388a19acc531126da277c491b628;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=22ecbf95ffe1a90c49218f2e34aa57d4694e7ffc;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-alpha/bitops.h b/include/asm-alpha/bitops.h index 22ecbf95f..87c43e519 100644 --- a/include/asm-alpha/bitops.h +++ b/include/asm-alpha/bitops.h @@ -2,7 +2,6 @@ #define _ALPHA_BITOPS_H #include -#include #include /* @@ -324,7 +323,7 @@ static inline int fls(int word) #endif /* Compute powers of two for the given integer. */ -static inline int floor_log2(unsigned long word) +static inline long floor_log2(unsigned long word) { #if defined(__alpha_cix__) && defined(__alpha_fix__) return 63 - __kernel_ctlz(word); @@ -336,7 +335,7 @@ static inline int floor_log2(unsigned long word) #endif } -static inline int ceil_log2(unsigned int word) +static inline long ceil_log2(unsigned long word) { long bit = floor_log2(word); return bit + (word > (1UL << bit));