make: try a different way to detect 32bit neon
authornotaz <notasas@gmail.com>
Fri, 7 Jul 2023 18:27:15 +0000 (21:27 +0300)
committernotaz <notasas@gmail.com>
Fri, 7 Jul 2023 18:40:23 +0000 (21:40 +0300)
include/arm_features.h

index 7c82ff3..4f216a3 100644 (file)
 
 #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__