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

Add detection of function multi-versioning in the compiler #234

Merged
merged 2 commits into from
Aug 7, 2023

Commits on Aug 7, 2023

  1. Add detection of function multi-versioning in the compiler

    This support is used so that the SSE2 version of memcpy_nontemporal is
    selected only if the CPU supports SSE2 at runtime.
    
    On x86-64 there is guaranteed to be runtime support, so this only
    affects i386. Note that i386 is not currently tested. The real
    motivation is that it lays the groundwork for adding more specialised
    variants e.g. AVX, AVX-512, MOVDIR64B etc.
    bmerry committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    10bac19 View commit details
    Browse the repository at this point in the history
  2. Adjust detection of function multi-versioning

    Never use it on non-x86 architectures. This is a workaround for MacOS
    universal binary Python builds, where detection happens on x86 but the
    ARM branch of the build fails because it's not supported there.
    bmerry committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    aaf0ce4 View commit details
    Browse the repository at this point in the history