2008-05-13 02:09:30 +08:00
|
|
|
#ifndef EIGEN_CORE_DECLARATIONS_H
|
|
|
|
#define EIGEN_CORE_DECLARATIONS_H
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
2008-05-27 13:47:30 +08:00
|
|
|
#define EIGEN_GNUC_AT_LEAST(x,y) ((__GNUC__>=x && __GNUC_MINOR__>=y) || __GNUC__>x)
|
2008-05-13 02:09:30 +08:00
|
|
|
#else
|
2008-05-15 17:40:11 +08:00
|
|
|
#define EIGEN_GNUC_AT_LEAST(x,y) 0
|
2008-05-13 02:09:30 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EIGEN_DONT_VECTORIZE
|
|
|
|
#if (defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) )
|
|
|
|
#define EIGEN_VECTORIZE
|
|
|
|
#define EIGEN_VECTORIZE_SSE
|
|
|
|
#include <emmintrin.h>
|
|
|
|
#include <xmmintrin.h>
|
|
|
|
#ifdef __SSE3__
|
|
|
|
#include <pmmintrin.h>
|
|
|
|
#endif
|
|
|
|
#ifdef __SSSE3__
|
|
|
|
#include <tmmintrin.h>
|
|
|
|
#endif
|
|
|
|
#elif (defined __ALTIVEC__)
|
|
|
|
#define EIGEN_VECTORIZE
|
|
|
|
#define EIGEN_VECTORIZE_ALTIVEC
|
|
|
|
#include <altivec.h>
|
|
|
|
// We _need_ to #undef bool as it's defined in <altivec.h> for some reason.
|
|
|
|
#undef bool
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cmath>
|
|
|
|
#include <complex>
|
|
|
|
#include <cassert>
|
2008-05-15 17:40:11 +08:00
|
|
|
#include <functional>
|
2008-05-13 02:09:30 +08:00
|
|
|
|
|
|
|
namespace Eigen {
|
|
|
|
|
|
|
|
#include "src/Core/util/Macros.h"
|
|
|
|
#include "src/Core/util/Constants.h"
|
|
|
|
#include "src/Core/util/ForwardDeclarations.h"
|
|
|
|
#include "src/Core/util/Meta.h"
|
|
|
|
|
|
|
|
} // namespace Eigen
|
|
|
|
|
|
|
|
#endif // EIGEN_CORE_DECLARATIONS_H
|