* Patch by Konstantinos Margaritis: AltiVec vectorization.

* Fix several warnings, temporarily disable determinant test.
This commit is contained in:
Benoit Jacob
2008-05-03 12:21:23 +00:00
parent 0545df2149
commit 8c6007f80e
11 changed files with 123 additions and 19 deletions

View File

@@ -8,14 +8,22 @@
#include <emmintrin.h>
#include <xmmintrin.h>
#endif
#ifdef __ALTIVEC__ // There are zero chances of both __SSE2__ AND __ALTIVEC__ been defined
#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>
#ifdef EIGEN_VECTORIZE
// it seems we cannot assume posix_memalign is defined in the stdlib header
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
#endif
#include <cstdlib>
#include <cmath>
#include <complex>
#include <cassert>