h7-fix-android-build #14

Merged
Mineplay merged 8 commits from h7-fix-android-build into main 2025-10-16 17:25:35 -05:00
Showing only changes of commit a5f43bce5a - Show all commits

View file

@ -23,7 +23,6 @@
#ifdef LIN_NEON
#include <sys/auxv.h>
#include <asm/hwcap.h>
#endif
HallocySimdType hallocy_is_simd_supported(void) {
@ -67,8 +66,9 @@ HallocySimdType hallocy_is_simd_supported(void) {
return hallocy_supported_simd;
}
#elif defined(LIN_NEON)
if (getauxval(AT_HWCAP) & HWCAP_NEON) {
hallocy_is_simd_supported = HALLOCY_SIMD_NEON;
if (getauxval(16) & (1 << 12)) {
hallocy_supported_simd = HALLOCY_SIMD_NEON;
return hallocy_supported_simd;
}
#elif defined(LIN_SIMD)
unsigned int a, b, c, d;