Commit 0999769e authored by Rusty Russell's avatar Rusty Russell

cris: define __fls

Like fls, but can't be handed 0 and returns the bit number.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 8c384cde
...@@ -148,6 +148,7 @@ static inline int test_and_change_bit(int nr, volatile unsigned long *addr) ...@@ -148,6 +148,7 @@ static inline int test_and_change_bit(int nr, volatile unsigned long *addr)
#define ffs kernel_ffs #define ffs kernel_ffs
#include <asm-generic/bitops/fls.h> #include <asm-generic/bitops/fls.h>
#include <asm-generic/bitops/__fls.h>
#include <asm-generic/bitops/fls64.h> #include <asm-generic/bitops/fls64.h>
#include <asm-generic/bitops/hweight.h> #include <asm-generic/bitops/hweight.h>
#include <asm-generic/bitops/find.h> #include <asm-generic/bitops/find.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment