Rate This Document
Findability
Accuracy
Completeness
Readability

CRC32 Hardware Acceleration Unit

Prerequisites

Run the following command to check whether the CPU supports CRC32 hardware instructions:
cat /proc/cpuinfo

If the Features line in the command output contains crc32, the CPU supports CRC32 hardware instructions.

Compiler Options

During GCC compilation, the -march option can be used to specify the Arm architecture version and extension instruction set. In this feature patch, -march=armv8-a+crc is used, and CRC32 hardware instructions are used to replace the software implementation of the CRC32 algorithm.