summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/word-at-a-time.h
Commit message (Collapse)AuthorAgeFilesLines
* powerpc: word-at-a-time optimization for 64-bit Little EndianPhilippe Bergheaud2013-10-311-25/+32
| | | | | | | | | | | | 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>
* powerpc: Add little endian support for word-at-a-time functionsAnton Blanchard2013-10-111-0/+71
| | | | | | | | The powerpc word-at-a-time functions are big endian specific. Bring in the x86 version in order to support little endian builds. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* powerpc: Use the new generic strncpy_from_user() and strnlen_user()Paul Mackerras2012-05-271-0/+41
This is much the same as for SPARC except that we can do the find_zero() function more efficiently using the count-leading-zeroes instructions. Tested on 32-bit and 64-bit PowerPC. Signed-off-by: Paul Mackerras <paulus@samba.org> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
OpenPOWER on IntegriCloud