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

Fix build for big endian AArch64 hosts #335

Closed
wants to merge 1 commit into from
Closed

Fix build for big endian AArch64 hosts #335

wants to merge 1 commit into from

Conversation

kovdan01
Copy link

The implementation does not support using arm neon on big-endian hosts: see blake3_neon.c. Setting BLAKE3_USE_NEON to 1 by default for all AArch64 hosts broke builds for big endian hosts. This patch fixes the behavior by introducing an additional check against __ARM_BIG_ENDIAN before setting BLAKE3_USE_NEON.

The implementation does not support using arm neon on big-endian hosts: see
blake3_neon.c. Setting `BLAKE3_USE_NEON` to 1 by default for all AArch64
hosts broke builds for big endian hosts. This patch fixes the behavior
by introducing an additional check against `__ARM_BIG_ENDIAN` before
setting `BLAKE3_USE_NEON`.
@oconnor663
Copy link
Member

I happened to get to #280 before this PR, but feel to rebase this and make it cleanup if you like.

@oconnor663 oconnor663 closed this Sep 20, 2023
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.

2 participants