aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/NEON/PacketMath.h
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-09-18 01:07:01 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-09-18 01:07:01 +0000
commit3af744b02394a359737b3491a50460e0ce871a47 (patch)
treef91915d793cf087cef7cd7d681347bc3d0f8a844 /Eigen/src/Core/arch/NEON/PacketMath.h
parent31a6b88ff3548ef6fbcb0e6208987c9c73ce0712 (diff)
Add missing packet op pcmp_lt_or_nan for Packet2d on ARM.
Diffstat (limited to 'Eigen/src/Core/arch/NEON/PacketMath.h')
-rw-r--r--Eigen/src/Core/arch/NEON/PacketMath.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h
index 463ae58ad..65a15d6a1 100644
--- a/Eigen/src/Core/arch/NEON/PacketMath.h
+++ b/Eigen/src/Core/arch/NEON/PacketMath.h
@@ -3642,6 +3642,9 @@ template<> EIGEN_STRONG_INLINE Packet2d pcmp_le(const Packet2d& a, const Packet2
template<> EIGEN_STRONG_INLINE Packet2d pcmp_lt(const Packet2d& a, const Packet2d& b)
{ return vreinterpretq_f64_u64(vcltq_f64(a,b)); }
+template<> EIGEN_STRONG_INLINE Packet2d pcmp_lt_or_nan(const Packet2d& a, const Packet2d& b)
+{ return vreinterpret_f32_u32(vmvnq_u64(vcgeq_f64(a,b))); }
+
template<> EIGEN_STRONG_INLINE Packet2d pcmp_eq(const Packet2d& a, const Packet2d& b)
{ return vreinterpretq_f64_u64(vceqq_f64(a,b)); }