Go to the documentation of this file.
13 #ifndef __UNICORE_BITOPS_H__
14 #define __UNICORE_BITOPS_H__
16 #define _ASM_GENERIC_BITOPS_FLS_H_
17 #define _ASM_GENERIC_BITOPS___FLS_H_
18 #define _ASM_GENERIC_BITOPS_FFS_H_
19 #define _ASM_GENERIC_BITOPS___FFS_H_
25 static inline int fls(
int x)
29 asm(
"cntlz\t%0, %1" :
"=r" (
ret) :
"r" (x) :
"cc");
35 #define __fls(x) (fls(x) - 1)
36 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
37 #define __ffs(x) (ffs(x) - 1)
42 #define find_next_bit find_next_bit
43 #define find_next_zero_bit find_next_zero_bit
44 #define find_first_bit find_first_bit
45 #define find_first_zero_bit find_first_zero_bit