Add PCLMULQDQ-accelerated CRC32C path with large block folding#74
Open
pkdog wants to merge 1 commit into
Open
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
91960d8 to
e29e199
Compare
e29e199 to
578fe78
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ExtendSse42Clmul) that uses PCLMULQDQ carry-less multiplication for stripe folding, replacing the skip-table approachPerformance (Intel Xeon E5-2678 v3, Release build)
PCLMUL path is now equal to or faster than SSE4.2 skip-table at all buffer sizes.
Files changed
src/crc32c_sse42_clmul.{cc,h}— PCLMUL-accelerated implementationsrc/crc32c.cc— dispatch logic (PCLMUL > SSE4.2 > ARM64 > portable)src/crc32c_sse42_check.h— addedCanUseClmul()CPUID detectionCMakeLists.txt— PCLMUL compile detection and OBJECT librarysrc/crc32c_config.h.in— addedHAVE_PCLMULdefineplans/x86-pclmul-optimization.md— updated optimization planTest plan
ctest— all 2 test suites passcrc32c_bench— all benchmarks pass, PCLMUL ≥ SSE4.2 at all sizesDraft PR — pending final review.