Go to the documentation of this file.
11 #ifndef _ASM_C6X_BITOPS_H
12 #define _ASM_C6X_BITOPS_H
16 #include <linux/bitops.h>
18 #include <asm/byteorder.h>
23 #define smp_mb__before_clear_bit() barrier()
24 #define smp_mb__after_clear_bit() barrier()
38 static inline unsigned long __ffs(
unsigned long x)
40 asm (
" bitr .M1 %0,%0\n"
54 #define ffz(x) __ffs(~(x))
63 static inline int fls(
int x)
68 asm (
" lmbd .L1 1,%0,%0\n" :
"+a"(
x));
82 static inline int ffs(
int x)