[PATCH] x86: fls() in asm
authorStephen Hemminger <shemminger@osdl.org>
Fri, 6 Jan 2006 08:12:12 +0000 (00:12 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:38 +0000 (08:33 -0800)
commitd832245d7cc16d50b29c1b708ccbe9c75ac376a3
tree2fc22b6337fc433a6b392e9b008339d8031e8e1c
parente31b88ba49460653bab87423287bb68743f5de5c
[PATCH] x86: fls() in asm

There is a single instruction on i386 to find largest set bit; so it makes
sense to use it (like we use bfs for ffs()).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/bitops.h