xref: /OK3568_Linux_fs/kernel/tools/include/asm-generic/bitops/__ffz.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun #ifndef _ASM_GENERIC_BITOPS_FFZ_H_
2*4882a593Smuzhiyun #define _ASM_GENERIC_BITOPS_FFZ_H_
3*4882a593Smuzhiyun 
4*4882a593Smuzhiyun /*
5*4882a593Smuzhiyun  * ffz - find first zero in word.
6*4882a593Smuzhiyun  * @word: The word to search
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Undefined if no zero exists, so code should check against ~0UL first.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #define ffz(x)  __ffs(~(x))
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #endif /* _ASM_GENERIC_BITOPS_FFZ_H_ */
13