]> 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)
commitba1aed2e184241f68429c775ebf118b41dfcc79f
tree22892b6bde5b57087437b233e1020391189e71b7
parent768f934558774313a8e7b64b9a2fe279daec0d5c
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