diff options
author | Chip Kerchner <chip.kerchner@ibm.com> | 2021-01-28 18:36:40 +0000 |
---|---|---|
committer | Antonio Sánchez <cantonios@google.com> | 2021-01-28 18:36:40 +0000 |
commit | 1414e2212c3cd36e2653bca0e11c653ece8f4d04 (patch) | |
tree | 451fe7fa7c6725b3c3e0381dd7cae6c3a8e88ad9 | |
parent | 170a504c2f65e1c224d6359eecd849025becfc2d (diff) |
Fix clang compilation for AltiVec from previous check-in
-rwxr-xr-x | Eigen/src/Core/arch/AltiVec/PacketMath.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index f191057a1..6d7842021 100755 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -2459,8 +2459,11 @@ template<> EIGEN_STRONG_INLINE Packet2d pldexp<Packet2d>(const Packet2d& a, cons } template<> EIGEN_STRONG_INLINE Packet2d pfrexp<Packet2d> (const Packet2d& a, Packet2d& exponent) { - Packet2d ret = { pfrexp<double>(a[0], exponent[0]), pfrexp<double>(a[1], exponent[1]) }; - return ret; + double exp[2] = { exponent[0], exponent[1] }; + Packet2d ret = { pfrexp<double>(a[0], exp[0]), pfrexp<double>(a[1], exp[1]) }; + exponent[0] = exp[0]; + exponent[1] = exp[1]; + return ret; // This doesn't currently work (no integer_packet for Packet2d - but adding it causes other problems) // return pfrexp_double(a, exponent); } |