]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Optimize fls64() on 64-bit processors
authorPaul Mackerras <paulus@samba.org>
Fri, 18 Apr 2008 04:26:08 +0000 (14:26 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 18 Apr 2008 06:25:15 +0000 (16:25 +1000)
commit23d2485d35e307ba5f34c39bf779794420db10e7
tree5d96ec582d5483c67e5511f0aa0c61d869a48640
parentcf89f06b1c5a6b8524e0ad7a3802d0465f106c66
[POWERPC] Optimize fls64() on 64-bit processors

64-bit powerpc processors can find the leftmost 1 bit in a 64-bit
doubleword in one instruction, so use that rather than using the
generic fls64(), which does two 32-bit fls() calls.

Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/bitops.h