-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/x86/crc32: target pclmul,sse4.1 instead of pclmul
In practice, all CPUs that support PCLMULQDQ also support SSE4.1: Intel: Westmere and later + Silvermont and later AMD: Bulldozer and later Therefore, make crc32_x86_pclmulqdq() use SSE4.1 instructions. To be safe, add an explicit check for SSE4.1 support. Though as per the above, this is unnecessary in practice (as far as I can tell).
- Loading branch information
Showing
4 changed files
with
21 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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