diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-12-14 14:47:38 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-12-14 14:47:38 +0100 |
commit | 546ab97d7679c75fadbf9e003c7c75faa9a179e5 (patch) | |
tree | 4547e1cd8452ffe9d3618022347d7499293a8016 /Eigen/src/Core/util/Macros.h | |
parent | 9c3aed9d48d7dbc0f88d2fb92ca232dcbf0d402e (diff) |
Add possibility to overwrite EIGEN_STRONG_INLINE.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 3a56b0e36..e351b7ad9 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -514,11 +514,13 @@ // EIGEN_STRONG_INLINE is a stronger version of the inline, using __forceinline on MSVC, // but it still doesn't use GCC's always_inline. This is useful in (common) situations where MSVC needs forceinline // but GCC is still doing fine with just inline. +#ifndef EIGEN_STRONG_INLINE #if EIGEN_COMP_MSVC || EIGEN_COMP_ICC #define EIGEN_STRONG_INLINE __forceinline #else #define EIGEN_STRONG_INLINE inline #endif +#endif // EIGEN_ALWAYS_INLINE is the stronget, it has the effect of making the function inline and adding every possible // attribute to maximize inlining. This should only be used when really necessary: in particular, |