aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Pete Warden <pete@petewarden.com>2015-05-12 16:03:43 -0700
committerGravatar Pete Warden <pete@petewarden.com>2015-05-12 16:03:43 -0700
commit140f85bb99125fbda8b68da5cd53c152c4f0d87e (patch)
treeaeecfd008f3a15a2e9456fbde4da0854a6fc6c2f /Eigen
parenta8520011968eb7c36845ca62535d823b032c6b91 (diff)
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.
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/Core2
1 files changed, 1 insertions, 1 deletions
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 <arm_neon.h>