From a5f43bce5a203ec33cff2d9a57c6eb77ab6ff79c Mon Sep 17 00:00:00 2001 From: Mineplay Date: Thu, 16 Oct 2025 12:07:15 -0500 Subject: [PATCH] fix(android build): fixed checking for simd version --- Src/Utils/Simd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Utils/Simd.c b/Src/Utils/Simd.c index 70e15c6..46d7359 100644 --- a/Src/Utils/Simd.c +++ b/Src/Utils/Simd.c @@ -23,7 +23,6 @@ #ifdef LIN_NEON #include -#include #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;