From 203769fe909f0f98af8c007629e7d49ef265ba07 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 7 Jul 2023 21:27:15 +0300 Subject: [PATCH] make: try a different way to detect 32bit neon --- include/arm_features.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/arm_features.h b/include/arm_features.h index 7c82ff38..4f216a3c 100644 --- a/include/arm_features.h +++ b/include/arm_features.h @@ -47,7 +47,10 @@ #endif -/* no need for HAVE_NEON - GCC defines __ARM_NEON__ consistently */ +/* gcc defines __ARM_NEON__ consistently for 32bit, but apple clang defines it for 64bit also... */ +#if defined(HAVE_ARMV7) && defined(__ARM_NEON__) +#define HAVE_NEON32 +#endif /* global function/external symbol */ #ifndef __MACH__ -- 2.39.5