diff options
-rw-r--r-- | arch/avr32/include/asm/bitops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/avr32/include/asm/bitops.h b/arch/avr32/include/asm/bitops.h index 1a50b69b1a19..f7dd5f71edf7 100644 --- a/arch/avr32/include/asm/bitops.h +++ b/arch/avr32/include/asm/bitops.h | |||
@@ -263,6 +263,11 @@ static inline int fls(unsigned long word) | |||
263 | return 32 - result; | 263 | return 32 - result; |
264 | } | 264 | } |
265 | 265 | ||
266 | static inline int __fls(unsigned long word) | ||
267 | { | ||
268 | return fls(word) - 1; | ||
269 | } | ||
270 | |||
266 | unsigned long find_first_zero_bit(const unsigned long *addr, | 271 | unsigned long find_first_zero_bit(const unsigned long *addr, |
267 | unsigned long size); | 272 | unsigned long size); |
268 | unsigned long find_next_zero_bit(const unsigned long *addr, | 273 | unsigned long find_next_zero_bit(const unsigned long *addr, |