Skip to content
Commit 8cb51ba8 authored by Austin Zhang's avatar Austin Zhang Committed by Herbert Xu
Browse files

crypto: crc32c - Use Intel CRC32 instruction



From NHM processor onward, Intel processors can support hardware accelerated
CRC32c algorithm with the new CRC32 instruction in SSE 4.2 instruction set.
The patch detects the availability of the feature, and chooses the most proper
way to calculate CRC32c checksum.
Byte code instructions are used for compiler compatibility.
No MMX / XMM registers is involved in the implementation.

Signed-off-by: default avatarAustin Zhang <austin.zhang@intel.com>
Signed-off-by: default avatarKent Liu <kent.liu@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f139cfa7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment