aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/SSE/MathFunctions.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <benoitjacob@google.com>2016-02-10 10:37:22 -0500
committerGravatar Benoit Jacob <benoitjacob@google.com>2016-02-10 10:37:22 -0500
commit964a95bf5e19df3aeff63700f95a02c35b8a2592 (patch)
treefa66e3f9377fe6093c9869da6db933c7412a9372 /Eigen/src/Core/arch/SSE/MathFunctions.h
parent72ab7879f77260b6fa29d29a05ab476412529222 (diff)
Diffstat (limited to 'Eigen/src/Core/arch/SSE/MathFunctions.h')
-rw-r--r--Eigen/src/Core/arch/SSE/MathFunctions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/SSE/MathFunctions.h b/Eigen/src/Core/arch/SSE/MathFunctions.h
index 74f6abc37..67cc3b3ba 100644
--- a/Eigen/src/Core/arch/SSE/MathFunctions.h
+++ b/Eigen/src/Core/arch/SSE/MathFunctions.h
@@ -531,7 +531,7 @@ template<>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
double sqrt(const double &x)
{
-#if EIGEN_COMP_GNUC
+#if EIGEN_COMP_GNUC && !defined(EMSCRIPTEN)
return internal::pfirst(internal::Packet2d(__builtin_ia32_sqrtsd(_mm_set_sd(x))));
#else
return internal::pfirst(internal::Packet2d(_mm_sqrt_pd(_mm_set_sd(x))));