mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix compilation problems with PacketI on PowerPC.
This commit is contained in:
committed by
Antonio Sánchez
parent
fcaf03ef7c
commit
ad452e575d
@@ -3201,6 +3201,7 @@ struct packet_traits<double> : default_packet_traits {
|
||||
template <>
|
||||
struct unpacket_traits<Packet2d> {
|
||||
typedef double type;
|
||||
typedef Packet2l integer_packet;
|
||||
enum {
|
||||
size = 2,
|
||||
alignment = Aligned16,
|
||||
@@ -3210,6 +3211,17 @@ struct unpacket_traits<Packet2d> {
|
||||
};
|
||||
typedef Packet2d half;
|
||||
};
|
||||
template <>
|
||||
struct unpacket_traits<Packet2l> {
|
||||
typedef int64_t type;
|
||||
enum {
|
||||
size = 2,
|
||||
alignment = Aligned16,
|
||||
vectorizable = true,
|
||||
masked_load_available = false,
|
||||
masked_store_available = false
|
||||
};
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& s, const Packet2l& v) {
|
||||
union {
|
||||
@@ -3259,6 +3271,11 @@ EIGEN_STRONG_INLINE Packet2d pset1<Packet2d>(const double& from) {
|
||||
Packet2d v = {from, from};
|
||||
return v;
|
||||
}
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet2l pset1<Packet2l>(const int64_t& from) {
|
||||
Packet2l v = {from, from};
|
||||
return v;
|
||||
}
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet2d pset1frombits<Packet2d>(unsigned long from) {
|
||||
|
||||
Reference in New Issue
Block a user