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: target pclmul,sse4.1 instead of pclmul #397

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Commits on Oct 26, 2024

  1. 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).
    ebiggers committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    677d924 View commit details
    Browse the repository at this point in the history