diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-11-24 12:57:28 -0800 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-11-24 12:57:28 -0800 |
commit | 79818216ed260a0b367a728ece655f1d0bdac324 (patch) | |
tree | 6da38b27b7610b85afb6a3de1affba89d01eb249 /Eigen/src/Core/GenericPacketMath.h | |
parent | c770746d709686ef2b8b652616d9232f9b028e78 (diff) |
Revert "Fix Half NaN definition and test."
This reverts commit c770746d709686ef2b8b652616d9232f9b028e78.
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rw-r--r-- | Eigen/src/Core/GenericPacketMath.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index e8065f8aa..e2fc7002b 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -539,20 +539,6 @@ inline void pbroadcast2(const typename unpacket_traits<Packet>::type *a, template<typename Packet> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet plset(const typename unpacket_traits<Packet>::type& a) { return a; } -/** \internal \returns a packet with constant coefficients \a a, e.g.: (x, 0, x, 0), - where x is the value of all 1-bits. */ -template<typename Packet> EIGEN_DEVICE_FUNC inline Packet -peven_mask(const Packet& /*a*/) { - typedef typename unpacket_traits<Packet>::type Scalar; - const size_t n = unpacket_traits<Packet>::size; - Scalar elements[n]; - for(size_t i = 0; i < n; ++i) { - memset(elements+i, ((i & 1) == 0 ? 0xff : 0), sizeof(Scalar)); - } - return ploadu<Packet>(elements); -} - - /** \internal copy the packet \a from to \a *to, \a to must be 16 bytes aligned */ template<typename Scalar, typename Packet> EIGEN_DEVICE_FUNC inline void pstore(Scalar* to, const Packet& from) { (*to) = from; } |