commit | 8989aa4adacd02174d1f72a00af8d669934a2b7a | [log] [tgz] |
---|---|---|
author | Anton Blanchard <anton@samba.org> | Fri Sep 19 09:40:20 2014 +1000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue Sep 30 14:59:13 2014 +1000 |
tree | 45c14574a1c98878425318ffb0854ded1ebbcc79 | |
parent | fe2a1bb1dbff1bc7b8c24eb1f691a544488617fa [diff] |
powerpc: ppc64le optimised word at a time 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>