[upstream_utils] Improve Eigen intellisense fix (#6621)

This commit is contained in:
Tyler Veness
2024-05-14 17:47:51 -07:00
committed by GitHub
parent 0a967e0e62
commit 637647b941
3 changed files with 23 additions and 29 deletions

View File

@@ -165,6 +165,13 @@
//----------------------------------------------------------------------
// Disable vectorization in intellisense
#ifdef __INTELLISENSE__
#ifndef EIGEN_DONT_VECTORIZE
#define EIGEN_DONT_VECTORIZE
#endif
#endif
// if alignment is disabled, then disable vectorization. Note: EIGEN_MAX_ALIGN_BYTES is the proper check, it takes into
// account both the user's will (EIGEN_MAX_ALIGN_BYTES,EIGEN_DONT_ALIGN) and our own platform checks
#if EIGEN_MAX_ALIGN_BYTES == 0

View File

@@ -60,16 +60,6 @@
// Compiler identification, EIGEN_COMP_*
//------------------------------------------------------------------------------------------
/// \internal Disable NEON features in Intellisense
#if __INTELLISENSE__
#ifdef __ARM_NEON
#undef __ARM_NEON
#endif
#ifdef __ARM_NEON__
#undef __ARM_NEON__
#endif
#endif
/// \internal EIGEN_COMP_GNUC set to version (e.g., 951 for GCC 9.5.1) for all compilers compatible with GCC
#ifdef __GNUC__
#define EIGEN_COMP_GNUC (__GNUC__ * 100 + __GNUC_MINOR__ * 10 + __GNUC_PATCHLEVEL__)