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