From 140f85bb99125fbda8b68da5cd53c152c4f0d87e Mon Sep 17 00:00:00 2001 From: Pete Warden Date: Tue, 12 May 2015 16:03:43 -0700 Subject: [PATCH] Check for the macro __ARM_NEON__ (with two underscores at the end) as well as __ARM_NEON. The second macro is correct according to the ARM language extensions specification, but historically the first one has been more common. Some older compilers (e.g. gcc v4.6 on a Beaglebone Black) only define the first, so without this patch NEON isn't enabled. --- Eigen/Core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/Core b/Eigen/Core index 16007d0c9..8a261d167 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -178,7 +178,7 @@ #undef bool #undef vector #undef pixel - #elif defined __ARM_NEON + #elif (defined __ARM_NEON) || (defined __ARM_NEON__) #define EIGEN_VECTORIZE #define EIGEN_VECTORIZE_NEON #include