mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add missing x86 pcasts
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
24d15e086f
commit
5527e78a64
@@ -206,6 +206,17 @@ struct type_casting_traits {
|
||||
};
|
||||
};
|
||||
|
||||
// provides a succint template to define vectorized casting traits with respect to the largest accessible packet types
|
||||
template <typename Src, typename Tgt>
|
||||
struct vectorized_type_casting_traits {
|
||||
enum : int {
|
||||
DefaultSrcPacketSize = packet_traits<Src>::size,
|
||||
DefaultTgtPacketSize = packet_traits<Tgt>::size,
|
||||
VectorizedCast = 1,
|
||||
SrcCoeffRatio = plain_enum_max(DefaultTgtPacketSize / DefaultSrcPacketSize, 1),
|
||||
TgtCoeffRatio = plain_enum_max(DefaultSrcPacketSize / DefaultTgtPacketSize, 1)
|
||||
};
|
||||
};
|
||||
|
||||
/** \internal Wrapper to ensure that multiple packet types can map to the same
|
||||
same underlying vector type. */
|
||||
|
||||
Reference in New Issue
Block a user