]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d3e5c18f822d834894c37e96f6f259412412dcf
tree22892b6bde5b57087437b233e1020391189e71b7
parentddc2b7ae6f45170c8a226a18824096b665b60ec4
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