generic: introduce a generic __fls implementation
authorAlexander van Heukelum <heukelum@mailshack.com>
Sat, 15 Mar 2008 17:30:57 +0000 (18:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 17:21:16 +0000 (19:21 +0200)
commit7d9dff22e8ad06ad330968c9e3d3a2fb55a5f9c3
tree1c65cd4cdf14f42d59e72514991c4b04278db8d5
parent12d9c8420b9daa1da3d9e090640fb24bcd0deba2
generic: introduce a generic __fls implementation

Add a generic __fls implementation in the same spirit as
the generic __ffs one. It finds the last (most significant)
set bit in the given long value.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-generic/bitops/__fls.h [new file with mode: 0644]