Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_GENERIC_BITOPS_BUILTIN_FFS_H_
0003 #define _ASM_GENERIC_BITOPS_BUILTIN_FFS_H_
0004 
0005 /**
0006  * ffs - find first bit set
0007  * @x: the word to search
0008  *
0009  * This is defined the same way as
0010  * the libc and compiler builtin ffs routines, therefore
0011  * differs in spirit from ffz (man ffs).
0012  */
0013 #define ffs(x) __builtin_ffs(x)
0014 
0015 #endif