Skip to content

Commit

Permalink
Protect getauxval call in C-Blos2
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Jul 30, 2024
1 parent 3f2dc4b commit 50db957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blosc/shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static blosc_cpu_features blosc_get_cpu_features(void) {
#if defined(__aarch64__)
/* aarch64 always has NEON */
cpu_features |= BLOSC_HAVE_NEON;
#else
#elif defined(__linux__)
if (getauxval(AT_HWCAP) & HWCAP_ARM_NEON) {
cpu_features |= BLOSC_HAVE_NEON;
}
Expand Down

0 comments on commit 50db957

Please sign in to comment.