Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/x86/crc32: add VPCLMULQDQ implementations of CRC-32 #341

Merged
merged 3 commits into from
Feb 19, 2024
Merged

Conversation

ebiggers
Copy link
Owner

This improves CRC-32 performance on some of the latest x86 CPUs. Three implementations are added: VPCLMULQDQ/AVX2 and VPCLMULQDQ/AVX512VL which use 256-bit vectors, and VPCLMULQDQ/AVX512F/AVX512VL which uses 512-bit vectors. To reduce downclocking effects, the implementation with 512-bit vectors isn't used on Intel CPUs 10th generation and older.

This improves CRC-32 performance on some of the latest x86 CPUs.  Three
implementations are added: VPCLMULQDQ/AVX2 and VPCLMULQDQ/AVX512VL which
use 256-bit vectors, and VPCLMULQDQ/AVX512F/AVX512VL which uses 512-bit
vectors.  To reduce downclocking effects, the implementation with
512-bit vectors isn't used on Intel CPUs 10th generation and older.
@ebiggers ebiggers merged commit 6f4b83f into master Feb 19, 2024
52 checks passed
@ebiggers ebiggers deleted the dev branch February 19, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant