mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix pre-POWER8_VECTOR bugs in pcmp_lt and pnegate and reactivate psqrt.
(cherry picked from commit 4a58f30aa0)
This commit is contained in:
committed by
C. Antonio Sanchez
parent
3adc78e39c
commit
414f0a1756
@@ -69,6 +69,30 @@ Packet2d psqrt<Packet2d>(const Packet2d& x)
|
||||
return vec_sqrt(x);
|
||||
}
|
||||
|
||||
#if !EIGEN_COMP_CLANG
|
||||
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
||||
Packet4f prsqrt<Packet4f>(const Packet4f& x)
|
||||
{
|
||||
return pset1<Packet4f>(1.0f) / psqrt<Packet4f>(x);
|
||||
// vec_rsqrt returns different results from the generic version
|
||||
// return vec_rsqrt(x);
|
||||
}
|
||||
|
||||
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
||||
Packet2d prsqrt<Packet2d>(const Packet2d& x)
|
||||
{
|
||||
return pset1<Packet2d>(1.0) / psqrt<Packet2d>(x);
|
||||
// vec_rsqrt returns different results from the generic version
|
||||
// return vec_rsqrt(x);
|
||||
}
|
||||
|
||||
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
||||
Packet2d patan<Packet2d>(const Packet2d& _x)
|
||||
{
|
||||
return patan_double(_x);
|
||||
}
|
||||
#endif
|
||||
|
||||
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
||||
Packet4f prsqrt<Packet4f>(const Packet4f& x)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user