Define EIGEN_VECTORIZE_AVX2 and EIGEN_VECTORIZE_FMA when the corresponding instructions can be used by the compiler

This commit is contained in:
Benoit Steiner 2015-07-22 18:22:16 -07:00
parent ce65c2922a
commit 6d6e6d0b88

View File

@ -131,6 +131,12 @@
#define EIGEN_VECTORIZE_SSE4_1
#define EIGEN_VECTORIZE_SSE4_2
#endif
#ifdef __AVX2__
#define EIGEN_VECTORIZE_AVX2
#endif
#ifdef __FMA__
#define EIGEN_VECTORIZE_FMA
#endif
// include files