diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-01-21 20:30:32 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-01-21 20:30:32 +0100 |
commit | 7cae8918c019feabf6c143c430d0cd82c74aeec3 (patch) | |
tree | 373d7d30bc57d9a268cd2b000a4e2de8df19f7d0 /Eigen/src/Core/arch/SSE/MathFunctions.h | |
parent | 8dca9f97e38970b1f7fed6cb508c58d8ff39d526 (diff) |
Fix compilation on old gcc+AVX
Diffstat (limited to 'Eigen/src/Core/arch/SSE/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/arch/SSE/MathFunctions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/arch/SSE/MathFunctions.h b/Eigen/src/Core/arch/SSE/MathFunctions.h index 0dd52f96e..74f6abc37 100644 --- a/Eigen/src/Core/arch/SSE/MathFunctions.h +++ b/Eigen/src/Core/arch/SSE/MathFunctions.h @@ -524,7 +524,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float sqrt(const float &x) { - return internal::pfirst(_mm_sqrt_ss(_mm_set_ss(x))); + return internal::pfirst(internal::Packet4f(_mm_sqrt_ss(_mm_set_ss(x)))); } template<> @@ -532,9 +532,9 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE double sqrt(const double &x) { #if EIGEN_COMP_GNUC - return internal::pfirst(__builtin_ia32_sqrtsd(_mm_set_sd(x))); + return internal::pfirst(internal::Packet2d(__builtin_ia32_sqrtsd(_mm_set_sd(x)))); #else - return internal::pfirst(_mm_sqrt_pd(_mm_set_sd(x))); + return internal::pfirst(internal::Packet2d(_mm_sqrt_pd(_mm_set_sd(x)))); #endif } |