mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
patch by Patrick Spendrin: fix MSVC compatibility
This commit is contained in:
parent
67813e01bf
commit
082e309d2a
@ -28,6 +28,14 @@
|
|||||||
|
|
||||||
#undef minor
|
#undef minor
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning( disable : 4181 4244 )
|
||||||
|
#define ASM(name) __asm(name)
|
||||||
|
#else
|
||||||
|
#define ASM(name) asm(name)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef EIGEN_DONT_USE_UNROLLED_LOOPS
|
#ifdef EIGEN_DONT_USE_UNROLLED_LOOPS
|
||||||
#define EIGEN_UNROLLING_LIMIT 0
|
#define EIGEN_UNROLLING_LIMIT 0
|
||||||
#endif
|
#endif
|
||||||
@ -144,8 +152,7 @@ enum { RowsAtCompileTime = Eigen::ei_traits<Derived>::RowsAtCompileTime, \
|
|||||||
IsVectorAtCompileTime = Base::IsVectorAtCompileTime };
|
IsVectorAtCompileTime = Base::IsVectorAtCompileTime };
|
||||||
|
|
||||||
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
|
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
|
||||||
_EIGEN_GENERIC_PUBLIC_INTERFACE(Derived, Eigen::MatrixBase<Derived>) \
|
_EIGEN_GENERIC_PUBLIC_INTERFACE(Derived, Eigen::MatrixBase<Derived>)
|
||||||
friend class Eigen::MatrixBase<Derived>;
|
|
||||||
|
|
||||||
#define EIGEN_ENUM_MIN(a,b) (((int)a <= (int)b) ? (int)a : (int)b)
|
#define EIGEN_ENUM_MIN(a,b) (((int)a <= (int)b) ? (int)a : (int)b)
|
||||||
#define EIGEN_ENUM_MAX(a,b) (((int)a >= (int)b) ? (int)a : (int)b)
|
#define EIGEN_ENUM_MAX(a,b) (((int)a >= (int)b) ? (int)a : (int)b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user