James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame^] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Johnson <johnson.peter@gmail.com> |
| 3 | Date: Fri, 20 Jan 2023 23:41:56 -0800 |
| 4 | Subject: [PATCH 2/3] Intellisense fix |
| 5 | |
| 6 | --- |
| 7 | Eigen/src/Core/util/Macros.h | 10 ++++++++++ |
| 8 | 1 file changed, 10 insertions(+) |
| 9 | |
| 10 | diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h |
| 11 | index 986c3d44db94c8ba339792b6738c47cdd2c5acbc..81986b9447824c440e004f38a220393ef5a089c6 100644 |
| 12 | --- a/Eigen/src/Core/util/Macros.h |
| 13 | +++ b/Eigen/src/Core/util/Macros.h |
| 14 | @@ -58,6 +58,16 @@ |
| 15 | // Compiler identification, EIGEN_COMP_* |
| 16 | //------------------------------------------------------------------------------------------ |
| 17 | |
| 18 | +/// \internal Disable NEON features in Intellisense |
| 19 | +#if __INTELLISENSE__ |
| 20 | +#ifdef __ARM_NEON |
| 21 | +#undef __ARM_NEON |
| 22 | +#endif |
| 23 | +#ifdef __ARM_NEON__ |
| 24 | +#undef __ARM_NEON__ |
| 25 | +#endif |
| 26 | +#endif |
| 27 | + |
| 28 | /// \internal EIGEN_COMP_GNUC set to 1 for all compilers compatible with GCC |
| 29 | #ifdef __GNUC__ |
| 30 | #define EIGEN_COMP_GNUC (__GNUC__*10+__GNUC_MINOR__) |