git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2a1bb
)
powerpc: ppc64le optimised word at a time
author
Anton Blanchard
<anton@samba.org>
Thu, 18 Sep 2014 23:40:20 +0000
(09:40 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 30 Sep 2014 04:59:13 +0000
(14:59 +1000)
Use cmpb which compares each byte in two 64 bit values and
for each matching byte places 0xff in the target and 0x00
otherwise.
A simple hash_name microbenchmark:
http://ozlabs.org/~anton/junkcode/hash_name_bench.c
shows this version to be 10-20% faster than running the x86
version on POWER8, depending on the length.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/word-at-a-time.h
patch
|
blob
|
history
diff --cc
arch/powerpc/include/asm/word-at-a-time.h
Simple merge