powerpc: word-at-a-time optimization for 64-bit Little Endian
authorPhilippe Bergheaud <felix@linux.vnet.ibm.com>
Thu, 26 Sep 2013 06:30:09 +0000 (08:30 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 Oct 2013 05:19:16 +0000 (16:19 +1100)
commitd0cebfa650a084f041131207d81f9b311babd5ef
tree22892b6bde5b57087437b233e1020391189e71b7
parent9c662cad2fb66ff3a44b1d4f545bf496bf67ab10
powerpc: word-at-a-time optimization for 64-bit Little Endian

This is an optimization for the PowerPC in 64-bit
little-endian. Bit counting is used in find_zero(), instead
of the multiply and shift.

It is modelled after Alan Modra's PowerPC LE strlen patch
http://sourceware.org/ml/libc-alpha/2013-08/msg00097.html.

Signed-off-by: Philippe Bergheaud <felix@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/word-at-a-time.h