summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/eigen/xlc-compilation-3.3.4.patch
blob: 50ccd0f39f2697b7dda9294bd1fa57decdff15a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -up /Eigen/src/Core/arch/AltiVec/PacketMath.h /Eigen/src/Core/arch/AltiVec/PacketMath.h
--- /Eigen/src/Core/arch/AltiVec/PacketMath.h
+++ /Eigen/src/Core/arch/AltiVec/PacketMath.h
@@ -1022,7 +1022,7 @@ ptranspose(PacketBlock<Packet2d,2>& kern
 
 template<> EIGEN_STRONG_INLINE Packet2d pblend(const Selector<2>& ifPacket, const Packet2d& thenPacket, const Packet2d& elsePacket) {
   Packet2l select = { ifPacket.select[0], ifPacket.select[1] };
-  Packet2bl mask = vec_cmpeq(reinterpret_cast<Packet2d>(select), reinterpret_cast<Packet2d>(p2l_ONE));
+  Packet2bl mask = reinterpret_cast<Packet2bl>( vec_cmpeq(reinterpret_cast<Packet2d>(select), reinterpret_cast<Packet2d>(p2l_ONE)) );
   return vec_sel(elsePacket, thenPacket, mask);
 }
 #endif // __VSX__