fix(android build): fixed checking for simd version

This commit is contained in:
Mineplay 2025-10-16 12:07:15 -05:00
parent 4b87134390
commit a5f43bce5a

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;