diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-11-06 16:27:41 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-11-06 16:27:41 -0500 |
commit | 1b98b7347248b959a76157a1da16ce70253fb597 (patch) | |
tree | f6fa6821dd22133ed2d27c8db47e7dfd6baaa2ce /Eigen/src/Core/PlainObjectBase.h | |
parent | aa3e420df5b7bf55a3d4910fdc859e5242254b34 (diff) |
Refactor force-inlining macros and use EIGEN_ALWAYS_INLINE to force inlining of the integer overflow helpers, whose non-inlining caused major performance problems, see the mailing list thread 'Significant perf regression probably due to bug #363 patches'
Diffstat (limited to 'Eigen/src/Core/PlainObjectBase.h')
-rw-r--r-- | Eigen/src/Core/PlainObjectBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 65233153a..f4d7b672c 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -35,7 +35,7 @@ namespace internal { template<typename Index> -inline void check_rows_cols_for_overflow(Index rows, Index cols) +EIGEN_ALWAYS_INLINE void check_rows_cols_for_overflow(Index rows, Index cols) { // http://hg.mozilla.org/mozilla-central/file/6c8a909977d3/xpcom/ds/CheckedInt.h#l242 // we assume Index is signed |