generic: Implement generic ffs/fls using __builtin_* functions
This patch implements ffs, __ffs, fls, __fls using __builtin_* gcc functions. These header files can be used by other architectures that rely on the gcc builtins. Signed-off-by:Catalin Marinas <catalin.marinas@arm.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
Showing
- include/asm-generic/bitops/builtin-__ffs.h 15 additions, 0 deletionsinclude/asm-generic/bitops/builtin-__ffs.h
- include/asm-generic/bitops/builtin-__fls.h 15 additions, 0 deletionsinclude/asm-generic/bitops/builtin-__fls.h
- include/asm-generic/bitops/builtin-ffs.h 17 additions, 0 deletionsinclude/asm-generic/bitops/builtin-ffs.h
- include/asm-generic/bitops/builtin-fls.h 16 additions, 0 deletionsinclude/asm-generic/bitops/builtin-fls.h
include/asm-generic/bitops/builtin-__ffs.h
0 → 100644
include/asm-generic/bitops/builtin-__fls.h
0 → 100644
include/asm-generic/bitops/builtin-ffs.h
0 → 100644
include/asm-generic/bitops/builtin-fls.h
0 → 100644
Please register or sign in to comment