mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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.
This commit is contained in:
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user