aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/AVX/MathFunctions.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-10 18:07:11 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-10 18:07:11 -0800
commit6d8b1dce06e5d3d670f510e88071afaf4458b458 (patch)
treec01964be43bd0d006177cba22f1b0cb3644252f9 /Eigen/src/Core/arch/AVX/MathFunctions.h
parent1dfaafe28a34c8cc6f0a9dbbc374ca470eae8a01 (diff)
Avoid implicit cast from double to float.
Diffstat (limited to 'Eigen/src/Core/arch/AVX/MathFunctions.h')
-rw-r--r--Eigen/src/Core/arch/AVX/MathFunctions.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/Eigen/src/Core/arch/AVX/MathFunctions.h b/Eigen/src/Core/arch/AVX/MathFunctions.h
index 3ea38ae07..a24bf6e26 100644
--- a/Eigen/src/Core/arch/AVX/MathFunctions.h
+++ b/Eigen/src/Core/arch/AVX/MathFunctions.h
@@ -276,19 +276,19 @@ ptanh<Packet8f>(const Packet8f& _x) {
const Packet8f x = _mm256_mul_ps(_x, _mm256_set1_ps(0.125f));
// The monomial coefficients of the numerator polynomial (odd).
- _EIGEN_DECLARE_CONST_Packet8f(alpha_1, -2.47030171958948e-03);
- _EIGEN_DECLARE_CONST_Packet8f(alpha_3, -2.06804010015822e-02);
- _EIGEN_DECLARE_CONST_Packet8f(alpha_5, -3.13693994587418e-02);
- _EIGEN_DECLARE_CONST_Packet8f(alpha_7, -7.19851201683627e-03);
- _EIGEN_DECLARE_CONST_Packet8f(alpha_9, 8.31561269687160e-04);
- _EIGEN_DECLARE_CONST_Packet8f(alpha_11, -1.37626659546502e-04);
- _EIGEN_DECLARE_CONST_Packet8f(alpha_13, 1.39116714700458e-05);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_1, -2.47030171958948e-03f);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_3, -2.06804010015822e-02f);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_5, -3.13693994587418e-02f);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_7, -7.19851201683627e-03f);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_9, 8.31561269687160e-04f);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_11, -1.37626659546502e-04f);
+ _EIGEN_DECLARE_CONST_Packet8f(alpha_13, 1.39116714700458e-05f);
// The monomial coefficients of the denominator polynomial (even).
- _EIGEN_DECLARE_CONST_Packet8f(beta_0, -3.08787724141615e-04);
- _EIGEN_DECLARE_CONST_Packet8f(beta_2, -9.17251911622436e-03);
- _EIGEN_DECLARE_CONST_Packet8f(beta_4, -3.09625062090444e-02);
- _EIGEN_DECLARE_CONST_Packet8f(beta_6, -2.05669680763032e-02);
+ _EIGEN_DECLARE_CONST_Packet8f(beta_0, -3.08787724141615e-04f);
+ _EIGEN_DECLARE_CONST_Packet8f(beta_2, -9.17251911622436e-03f);
+ _EIGEN_DECLARE_CONST_Packet8f(beta_4, -3.09625062090444e-02f);
+ _EIGEN_DECLARE_CONST_Packet8f(beta_6, -2.05669680763032e-02f);
// Since the polynomials are odd/even, we need x^2.
const Packet8f x2 = _mm256_mul_ps(x, x);