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

Detect Neon capability at runtime #63

Merged
merged 1 commit into from
Oct 25, 2022

Commits on Oct 4, 2022

  1. Detect Neon capability at runtime via operating system APIs

    On ARM, detecting processor capabilities is a privileged operation.
    So unlike x86's cpuid() intrinsics, we must query support via OS-specific
    API functions. Implemented for various operating systems:
    
    * Linux: via getauxval()
    * FreeBSD: via the similar elf_aux_info()
    * macOS: all Apple Silicon machines support Neon (so far)
    * Windows: via IsProcessorFeaturePresent()
    jmarshall committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    c3cbab7 View commit details
    Browse the repository at this point in the history