aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/CUDA/MathFunctions.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-05-23 17:14:31 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-05-23 17:14:31 -0700
commit5ba0ebe7c93513d11d21bb80d0db0a0390bb6300 (patch)
tree8097388c0606539911023a8b8e30658e88092de4 /Eigen/src/Core/arch/CUDA/MathFunctions.h
parent7d980d74e56ebbf42f57722060f6de46617b90fc (diff)
Avoid unnecessary float to double conversion.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA/MathFunctions.h')
-rw-r--r--Eigen/src/Core/arch/CUDA/MathFunctions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/CUDA/MathFunctions.h b/Eigen/src/Core/arch/CUDA/MathFunctions.h
index 317499b29..c90ec96a0 100644
--- a/Eigen/src/Core/arch/CUDA/MathFunctions.h
+++ b/Eigen/src/Core/arch/CUDA/MathFunctions.h
@@ -123,7 +123,7 @@ double2 ppolygamma<double2>(const double2& n, const double2& x)
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
float4 perf<float4>(const float4& a)
{
- return make_float4(erf(a.x), erf(a.y), erf(a.z), erf(a.w));
+ return make_float4(erff(a.x), erff(a.y), erff(a.z), erff(a.w));
}
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
@@ -135,7 +135,7 @@ double2 perf<double2>(const double2& a)
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
float4 perfc<float4>(const float4& a)
{
- return make_float4(erfc(a.x), erfc(a.y), erfc(a.z), erfc(a.w));
+ return make_float4(erfcf(a.x), erfcf(a.y), erfcf(a.z), erfcf(a.w));
}
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE