parent
0fddbf3dc7
commit
9e0fa0ef6d
@ -497,10 +497,11 @@
|
|||||||
// attribute to maximize inlining. This should only be used when really necessary: in particular,
|
// attribute to maximize inlining. This should only be used when really necessary: in particular,
|
||||||
// it uses __attribute__((always_inline)) on GCC, which most of the time is useless and can severely harm compile times.
|
// it uses __attribute__((always_inline)) on GCC, which most of the time is useless and can severely harm compile times.
|
||||||
// FIXME with the always_inline attribute,
|
// FIXME with the always_inline attribute,
|
||||||
// gcc 3.4.x reports the following compilation error:
|
// gcc 3.4.x and 4.1 reports the following compilation error:
|
||||||
// Eval.h:91: sorry, unimplemented: inlining failed in call to 'const Eigen::Eval<Derived> Eigen::MatrixBase<Scalar, Derived>::eval() const'
|
// Eval.h:91: sorry, unimplemented: inlining failed in call to 'const Eigen::Eval<Derived> Eigen::MatrixBase<Scalar, Derived>::eval() const'
|
||||||
// : function body not available
|
// : function body not available
|
||||||
#if EIGEN_GNUC_AT_LEAST(4,0)
|
// See also bug 1367
|
||||||
|
#if EIGEN_GNUC_AT_LEAST(4,2)
|
||||||
#define EIGEN_ALWAYS_INLINE __attribute__((always_inline)) inline
|
#define EIGEN_ALWAYS_INLINE __attribute__((always_inline)) inline
|
||||||
#else
|
#else
|
||||||
#define EIGEN_ALWAYS_INLINE EIGEN_STRONG_INLINE
|
#define EIGEN_ALWAYS_INLINE EIGEN_STRONG_INLINE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user