]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crc32c: Add crc32c function optimized for ppc architecture 13909/head
authorAndrew Solomon <asolomon@us.ibm.com>
Wed, 8 Mar 2017 20:54:22 +0000 (20:54 +0000)
committerAndrew Solomon <asolomon@us.ibm.com>
Mon, 20 Mar 2017 17:59:49 +0000 (17:59 +0000)
commit59bed55a676ebbe3ad97d8ec005c2088553e4e11
treea19ba85296655c8d635ffdac2caa0349ffb2fdb4
parent0007adb5b78443fd3a6a885e828326c3bc1d2a3b
crc32c: Add crc32c function optimized for ppc architecture

Add a performance optimized crc32c function for
ppc64le that uses Altivec assembly instructions.
Add an architecture probe for ppc (PowerPC
'ppc64le' architecture).  When the architecture
probe detects that the ppc specific crc32c function
(ceph_crc32c_ppc) can be used, it will do so instead
of using the default crc32c function (ceph_crc32c_sctp).

Signed-off-by: Andrew Solomon <asolomon@us.ibm.com>
src/CMakeLists.txt
src/arch/ppc.c [new file with mode: 0644]
src/arch/ppc.h [new file with mode: 0644]
src/arch/probe.cc
src/common/crc32c.cc
src/common/crc32c_ppc.c [new file with mode: 0644]
src/common/crc32c_ppc.h [new file with mode: 0644]
src/common/crc32c_ppc_asm.S [new file with mode: 0644]
src/common/crc32c_ppc_constants.h [new file with mode: 0644]
src/common/ppc-opcode.h [new file with mode: 0644]
src/include/config-h.in.cmake