From 56c8b14d875ae42a52d0da52916fac1e29305ca7 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Mon, 1 Feb 2021 15:31:01 -0800 Subject: Eliminate implicit conversions from float to double. --- Eigen/src/Core/arch/AltiVec/MatrixProduct.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/arch/AltiVec') diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProduct.h b/Eigen/src/Core/arch/AltiVec/MatrixProduct.h index b86367571..53116ad89 100644 --- a/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +++ b/Eigen/src/Core/arch/AltiVec/MatrixProduct.h @@ -72,7 +72,7 @@ struct quad_traits // are responsible to extract from convert between Eigen's and MatrixProduct approach. const static Packet4f p4f_CONJUGATE = {-1.0f, -1.0f, -1.0f, -1.0f}; -const static Packet2d p2d_CONJUGATE = {-1.0f, -1.0f}; +const static Packet2d p2d_CONJUGATE = {-1.0, -1.0}; const static Packet16uc p16uc_GETREAL32 = { 0, 1, 2, 3, 8, 9, 10, 11, @@ -1057,7 +1057,7 @@ struct lhs_cpack::vectorsize; Index ri = 0, j = 0; double *blockAt = reinterpret_cast(blockA); - Packet conj = pset1((double)-1.0f); + Packet conj = pset1(-1.0); for(j = 0; j + vectorSize < rows; j+=vectorSize) { @@ -1202,7 +1202,7 @@ struct rhs_cpack::vectorsize; double *blockBt = reinterpret_cast(blockB); - Packet conj = pset1((double)-1.0f); + Packet conj = pset1(-1.0); Index ri = 0, j = 0; for(; j + 2*vectorSize < cols; j+=2*vectorSize) -- cgit v1.2.3