optimize non fused MADD, and add a flatten attribute macro to enforce

inlining within a function
This commit is contained in:
Gael Guennebaud
2010-07-13 15:16:34 +02:00
parent b72b7ab76f
commit 36d9b51a44
3 changed files with 33 additions and 6 deletions

View File

@@ -147,6 +147,12 @@
#define EIGEN_ALWAYS_INLINE_ATTRIB
#endif
#if EIGEN_GNUC_AT_LEAST(4,0)
#define EIGEN_FLATTEN_ATTRIB __attribute__((flatten))
#else
#define EIGEN_FLATTEN_ATTRIB
#endif
// EIGEN_FORCE_INLINE means "inline as much as possible"
#if (defined _MSC_VER) || (defined __intel_compiler)
#define EIGEN_STRONG_INLINE __forceinline