mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
back out changeset efdf2e405664163c685127aecec53a21977f8031
. It turns out that the SSE3 header is always included, even without any SSE enabled, so it was making us wrongly use SSE3 paths. Backing this out fixes msvc related crashes, at least bug #165.
This commit is contained in:
parent
d6c4ca4845
commit
85f9fab003
17
Eigen/Core
17
Eigen/Core
@ -74,6 +74,7 @@
|
|||||||
// there is no way to know about this on msvc. You can define EIGEN_VECTORIZE_SSE* if you
|
// there is no way to know about this on msvc. You can define EIGEN_VECTORIZE_SSE* if you
|
||||||
// want to force the use of those instructions with msvc.
|
// want to force the use of those instructions with msvc.
|
||||||
#ifdef __SSE3__
|
#ifdef __SSE3__
|
||||||
|
#error 'hello'
|
||||||
#define EIGEN_VECTORIZE_SSE3
|
#define EIGEN_VECTORIZE_SSE3
|
||||||
#endif
|
#endif
|
||||||
#ifdef __SSSE3__
|
#ifdef __SSSE3__
|
||||||
@ -164,22 +165,6 @@
|
|||||||
// required for __cpuid, needs to be included after cmath
|
// required for __cpuid, needs to be included after cmath
|
||||||
#if defined(_MSC_VER) && (defined(_M_IX86)||defined(_M_X64))
|
#if defined(_MSC_VER) && (defined(_M_IX86)||defined(_M_X64))
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
// When available, intrin.h pulls in all SSE headers which allows us
|
|
||||||
// to check which SSE level is supported on MSVC systems
|
|
||||||
#ifndef EIGEN_DONT_VECTORIZE
|
|
||||||
#ifdef _INCLUDED_PMM
|
|
||||||
#define EIGEN_VECTORIZE_SSE3
|
|
||||||
#endif
|
|
||||||
#ifdef _INCLUDED_TMM
|
|
||||||
#define EIGEN_VECTORIZE_SSSE3
|
|
||||||
#endif
|
|
||||||
#ifdef _INCLUDED_SMM
|
|
||||||
#define EIGEN_VECTORIZE_SSE4_1
|
|
||||||
#endif
|
|
||||||
#ifdef _INCLUDED_NMM
|
|
||||||
#define EIGEN_VECTORIZE_SSE4_2
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(EIGEN_NO_EXCEPTIONS)
|
#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(EIGEN_NO_EXCEPTIONS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user