aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/AltiVec/MatrixProduct.h
diff options
context:
space:
mode:
authorGravatar Antonio Sanchez <cantonios@google.com>2021-02-01 15:31:01 -0800
committerGravatar Antonio Sanchez <cantonios@google.com>2021-02-01 15:31:01 -0800
commit56c8b14d875ae42a52d0da52916fac1e29305ca7 (patch)
tree12b1c7eabb4cf5ee0301779bd857acbdc7a5d389 /Eigen/src/Core/arch/AltiVec/MatrixProduct.h
parentfb4548e27b650f2e9a3e840ab14b317632864e91 (diff)
Eliminate implicit conversions from float to double.
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/MatrixProduct.h')
-rw-r--r--Eigen/src/Core/arch/AltiVec/MatrixProduct.h6
1 files changed, 3 insertions, 3 deletions
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<double>
// 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<double, IsComplex, Index, DataMapper, Packet, PacketC, StorageO
const int vectorSize = quad_traits<double>::vectorsize;
Index ri = 0, j = 0;
double *blockAt = reinterpret_cast<double *>(blockA);
- Packet conj = pset1<Packet>((double)-1.0f);
+ Packet conj = pset1<Packet>(-1.0);
for(j = 0; j + vectorSize < rows; j+=vectorSize)
{
@@ -1202,7 +1202,7 @@ struct rhs_cpack<double, Index, DataMapper, Packet, PacketC, StorageOrder, Conju
{
const int vectorSize = quad_traits<double>::vectorsize;
double *blockBt = reinterpret_cast<double *>(blockB);
- Packet conj = pset1<Packet>((double)-1.0f);
+ Packet conj = pset1<Packet>(-1.0);
Index ri = 0, j = 0;
for(; j + 2*vectorSize < cols; j+=2*vectorSize)