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

cpufeatures: fix usage on Musl environments; add NEON support #403

Merged
merged 1 commit into from
May 13, 2021

Conversation

tarcieri
Copy link
Member

The libc crate doesn't presently define Linux's HWCAP_* in Musl-based environments:

rust-lang/libc#2171

This PR (temporarily) copies the presently supported HWCAP_* constants directly into this crate.

Additionally, it adds support for the neon target feature.

The `libc` crate doesn't presently define Linux's `HWCAP_*` in
Musl-based environments:

rust-lang/libc#2171

This PR (temporarily) copies the presently supported `HWCAP_*` constants
directly into this crate.

Additionally, it adds support for the `neon` target feature.
@tarcieri tarcieri merged commit 442176a into master May 13, 2021
@tarcieri tarcieri deleted the cpufeatures/fix-musl-add-neon branch May 13, 2021 16:38
@tarcieri tarcieri mentioned this pull request May 13, 2021
@tarcieri
Copy link
Member Author

It seems adding runtime detection for NEON to aarch64 is unnecessary as it can be assumed to be present.

It would be nice for 32-bit ARM, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant