Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_GENERIC_BITOPS_FFZ_H_
0003 #define _ASM_GENERIC_BITOPS_FFZ_H_
0004 
0005 /*
0006  * ffz - find first zero in word.
0007  * @word: The word to search
0008  *
0009  * Undefined if no zero exists, so code should check against ~0UL first.
0010  */
0011 #define ffz(x)  __ffs(~(x))
0012 
0013 #endif /* _ASM_GENERIC_BITOPS_FFZ_H_ */