mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[upstream_utils] Improve Eigen intellisense fix (#6621)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__)
|
||||
|
||||
Reference in New Issue
Block a user