Skip to content
This repository was archived by the owner on Apr 2, 2021. It is now read-only.

Use getauxval to check for NEON on Linux.#32

Open
QuLogic wants to merge 1 commit into
Auburn:masterfrom
QuLogic:neon
Open

Use getauxval to check for NEON on Linux.#32
QuLogic wants to merge 1 commit into
Auburn:masterfrom
QuLogic:neon

Conversation

@QuLogic

@QuLogic QuLogic commented Jul 21, 2018

Copy link
Copy Markdown
Contributor

Based on this SO answer and this ARM blog post. Seems to work pretty well on an armv7hl machine.

@Auburn

Auburn commented Jul 24, 2018

Copy link
Copy Markdown
Owner

Have you tested that this still compiles for Android

@QuLogic

QuLogic commented Jul 24, 2018

Copy link
Copy Markdown
Contributor Author

TBH, I'm not sure how to set that up. Does it define one of the linux constants also? I guess checking for __ANDROID__ might help if needed then.

@QuLogic

QuLogic commented Jul 24, 2018

Copy link
Copy Markdown
Contributor Author

Based on this SO answer, it does appear that __linux__ is defined on Android, so I modified this to check that __ANDROID__ is also not defined.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants