11 #ifndef EIGEN_TYPE_CASTING_ALTIVEC_H
12 #define EIGEN_TYPE_CASTING_ALTIVEC_H
15 #include "../../InternalHeaderCheck.h"
72 if (vec_any_gt(int_even, p4ui_low_mask)) {
73 overflow_selector = vec_cmpgt(int_even, p4ui_low_mask);
74 low_even = vec_sel(low_even, p4ui_low_mask, overflow_selector);
76 if (vec_any_gt(int_odd, p4ui_low_mask)) {
77 overflow_selector = vec_cmpgt(int_odd, p4ui_low_mask);
78 low_odd = vec_sel(low_even, p4ui_low_mask, overflow_selector);
81 return pmerge(low_even, low_odd);
90 Packet4ui int_odd = plogical_shift_right<16>(int_cast);
105 return reinterpret_cast<Packet4f>(vec_mergeh(
a.m_val, z));
107 return reinterpret_cast<Packet4f>(vec_mergeh(z,
a.m_val));
131 #ifdef EIGEN_VECTORIZE_VSX
140 #if EIGEN_GNUC_STRICT_AT_LEAST(7, 1, 0)
141 return vec_cts(
x, 0);
145 Packet2l l = {
static_cast<long long>(
tmp[0]),
static_cast<long long>(
tmp[1])};
152 unsigned long long tmp[2];
154 Packet2d d = {
static_cast<double>(
tmp[0]),
static_cast<double>(
tmp[1])};
#define EIGEN_STRONG_INLINE
Definition: Macros.h:834
Scalar * b
Definition: benchVecAdd.cpp:17
const Scalar * a
Definition: level2_cplx_impl.h:32
Eigen::Matrix< Scalar, Dynamic, Dynamic, ColMajor > tmp
Definition: level3_impl.h:365
__m128d Packet2d
Definition: LSX/PacketMath.h:36
eigen_packet_wrapper< __m128i, 3 > Packet2l
Definition: LSX/PacketMath.h:41
__vector int Packet4i
Definition: AltiVec/PacketMath.h:34
EIGEN_STRONG_INLINE Packet4f pcast< Packet8bf, Packet4f >(const Packet8bf &a)
Definition: AltiVec/TypeCasting.h:102
EIGEN_STRONG_INLINE Packet4ui pand< Packet4ui >(const Packet4ui &a, const Packet4ui &b)
Definition: AltiVec/PacketMath.h:1414
EIGEN_ALWAYS_INLINE Packet8us pmerge(Packet4ui even, Packet4ui odd)
Definition: AltiVec/PacketMath.h:2032
__vector unsigned short int Packet8us
Definition: AltiVec/PacketMath.h:38
EIGEN_STRONG_INLINE Packet2l pcast< Packet2d, Packet2l >(const Packet2d &a)
Definition: LSX/TypeCasting.h:433
EIGEN_STRONG_INLINE Packet8us pcast< Packet8bf, Packet8us >(const Packet8bf &a)
Definition: AltiVec/TypeCasting.h:61
static EIGEN_DECLARE_CONST_FAST_Packet4ui(SIGN, 0x80000000u)
__vector unsigned int Packet4ui
Definition: AltiVec/PacketMath.h:35
__vector __bool int Packet4bi
Definition: AltiVec/PacketMath.h:36
EIGEN_STRONG_INLINE Packet8bf pcast< Packet8us, Packet8bf >(const Packet8us &a)
Definition: AltiVec/TypeCasting.h:85
EIGEN_STRONG_INLINE Packet4f pcast< Packet4i, Packet4f >(const Packet4i &a)
Definition: AltiVec/TypeCasting.h:51
EIGEN_STRONG_INLINE Packet8bf F32ToBf16Both(Packet4f lo, Packet4f hi)
Definition: AltiVec/PacketMath.h:2237
EIGEN_STRONG_INLINE Packet2d pcast< Packet2l, Packet2d >(const Packet2l &a)
Definition: LSX/TypeCasting.h:514
EIGEN_STRONG_INLINE Packet4f Bf16ToF32Even(const Packet8bf &bf)
Definition: AltiVec/PacketMath.h:2023
EIGEN_STRONG_INLINE Packet8bf pcast< Packet4f, Packet8bf >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/TypeCasting.h:117
EIGEN_STRONG_INLINE Packet4i pcast< Packet4f, Packet4i >(const Packet4f &a)
Definition: AltiVec/TypeCasting.h:41
EIGEN_STRONG_INLINE Packet4f Bf16ToF32Odd(const Packet8bf &bf)
Definition: AltiVec/PacketMath.h:2027
EIGEN_STRONG_INLINE Packet4i preinterpret< Packet4i, Packet4f >(const Packet4f &a)
Definition: AltiVec/TypeCasting.h:122
EIGEN_STRONG_INLINE Packet4f preinterpret< Packet4f, Packet4i >(const Packet4i &a)
Definition: AltiVec/TypeCasting.h:127
EIGEN_STRONG_INLINE Packet8us pset1< Packet8us >(const unsigned short int &from)
Definition: AltiVec/PacketMath.h:788
__vector float Packet4f
Definition: AltiVec/PacketMath.h:33
EIGEN_STRONG_INLINE Packet4f pcast< Packet4ui, Packet4f >(const Packet4ui &a)
Definition: AltiVec/TypeCasting.h:56
EIGEN_STRONG_INLINE Packet8bf F32ToBf16(Packet4f p4f)
Definition: AltiVec/PacketMath.h:2059
EIGEN_STRONG_INLINE Packet4ui pcast< Packet4f, Packet4ui >(const Packet4f &a)
Definition: AltiVec/TypeCasting.h:46
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
Definition: Eigen_Colamd.h:49
list x
Definition: plotDoE.py:28
Definition: BFloat16.h:101
Definition: GenericPacketMath.h:225
Definition: GenericPacketMath.h:201
@ TgtCoeffRatio
Definition: GenericPacketMath.h:206
@ VectorizedCast
Definition: GenericPacketMath.h:203
@ SrcCoeffRatio
Definition: GenericPacketMath.h:205