-
- Downloads
generic: implement __fls on all 64-bit archs
Implement __fls on all 64-bit archs: alpha has an implementation of fls64. Added __fls(x) = fls64(x) - 1. ia64 has fls, but not __fls. Added __fls based on code of fls. mips and powerpc have __ilog2, which is the same as __fls. Added __fls = __ilog2. parisc, s390, sh and sparc64: Include generic __fls. x86_64 already has __fls. Signed-off-by:Alexander van Heukelum <heukelum@fastmail.fm> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- include/asm-alpha/bitops.h 5 additions, 0 deletionsinclude/asm-alpha/bitops.h
- include/asm-ia64/bitops.h 16 additions, 0 deletionsinclude/asm-ia64/bitops.h
- include/asm-mips/bitops.h 5 additions, 0 deletionsinclude/asm-mips/bitops.h
- include/asm-parisc/bitops.h 1 addition, 0 deletionsinclude/asm-parisc/bitops.h
- include/asm-powerpc/bitops.h 5 additions, 0 deletionsinclude/asm-powerpc/bitops.h
- include/asm-s390/bitops.h 1 addition, 0 deletionsinclude/asm-s390/bitops.h
- include/asm-sh/bitops.h 1 addition, 0 deletionsinclude/asm-sh/bitops.h
- include/asm-sparc64/bitops.h 1 addition, 0 deletionsinclude/asm-sparc64/bitops.h
Loading
Please register or sign in to comment