Module pclmulqdq

Source
Expand description

Specialized checksum code for the x86 CPU architecture, based on the efficient algorithm described in the following whitepaper:

Gopal, V., Ozturk, E., Guilford, J., Wolrich, G., Feghali, W., Dixon, M., & Karakoyunlu, D. (2009). Fast CRC computation for generic polynomials using PCLMULQDQ instruction. Intel. (Mirror link: https://fossies.org/linux/zlib-ng/doc/crc-pclmulqdq.pdf, accessed 2024-05-20)

Throughout the code, this work is referred to as β€œthe paper”.

StructsΒ§

State

ConstantsΒ§

K1 πŸ”’
K2 πŸ”’
K3 πŸ”’
K4 πŸ”’
K5 πŸ”’
P_X πŸ”’
U_PRIME πŸ”’

FunctionsΒ§

calculate πŸ”’ ⚠pclmulqdq and sse2 and sse4.1
get πŸ”’ ⚠
reduce128 πŸ”’ βš