diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-06-16 14:36:42 -0700 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2021-06-16 18:41:17 -0700 |
commit | 12e8d57108c50d8a63605c6eb0144c838c128337 (patch) | |
tree | 2b3e2cd885e153d50cd6794f22e9b3f07186e81c /Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | |
parent | ef1fd341a895fda883f655102f371fa8b41f2088 (diff) |
Remove pset, replace with ploadu.
We can't make guarantees on alignment for existing calls to `pset`,
so we should default to loading unaligned. But in that case, we should
just use `ploadu` directly. For loading constants, this load should hopefully
get optimized away.
This is causing segfaults in Google Maps.
Diffstat (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h')
-rw-r--r-- | Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 8f1c1a874..bb4f719a8 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -19,12 +19,6 @@ namespace Eigen { namespace internal { -template<typename Packet, int N> EIGEN_DEVICE_FUNC inline Packet -pset(const typename unpacket_traits<Packet>::type (&a)[N] /* a */) { - EIGEN_STATIC_ASSERT(unpacket_traits<Packet>::size == N, THE_ARRAY_SIZE_SHOULD_EQUAL_WITH_PACKET_SIZE); - return pload<Packet>(a); -} - // Creates a Scalar integer type with same bit-width. template<typename T> struct make_integer; template<> struct make_integer<float> { typedef numext::int32_t type; }; |