crypto: powerpc - Factor out the core CRC vpmsum algorithm
authorDaniel Axtens <dja@axtens.net>
Wed, 15 Mar 2017 12:37:34 +0000 (23:37 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Mar 2017 14:02:52 +0000 (22:02 +0800)
commitde696a26435ae50f06fd913bc84e0bf602caee1f
tree5ea7e797a6d0bdad8b4b2194bf5152c7b83c48d5
parent2e6d603e5163e6f32a8686744b4d53e8778957ba
crypto: powerpc - Factor out the core CRC vpmsum algorithm

The core nuts and bolts of the crc32c vpmsum algorithm will
also work for a number of other CRC algorithms with different
polynomials. Factor out the function into a new asm file.

To handle multiple users of the function, a user simply
provides constants, defines the name of their CRC function,
and then #includes the core algorithm file.

Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/crypto/crc32-vpmsum_core.S [new file with mode: 0644]
arch/powerpc/crypto/crc32c-vpmsum_asm.S