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

x86: improve SIMD detection #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Jul 3, 2024

  1. x86: improve SIMD detection

    Since 56dbde0 (Add xgetbv feature detection support on x86, 2024-03-23),
    AVX support can be "rescinded" if it has been partially disabled, but
    the check added didn't include the possibility that OSXSAVE could be
    also disabled (ex: using the `noxsave` kernel parameter in Linux).
    
    Correct that and while at it, add a similar check for SSE2 (only relevant
    in 32bit) and for the possibility that if not enabled (ex: the OS never
    set CR4.OSFXSR), then SSE41 support should also be rescinded.
    carenas committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    744ef57 View commit details
    Browse the repository at this point in the history