10 #ifndef EIGEN_TYPE_CASTING_AVX_H
11 #define EIGEN_TYPE_CASTING_AVX_H
20 struct type_casting_traits<float, int> {
29 struct type_casting_traits<int, float> {
38 #ifndef EIGEN_VECTORIZE_AVX512
80 return _mm256_cvttps_epi32(
a);
84 return _mm256_cvtepi32_ps(
a);
88 return _mm256_castps_si256(
a);
92 return _mm256_castsi256_ps(
a);
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
EIGEN_STRONG_INLINE Packet8f pcast< Packet8i, Packet8f >(const Packet8i &a)
Definition: TypeCasting.h:83
EIGEN_STRONG_INLINE Packet8h float2half(const Packet8f &a)
Definition: PacketMath.h:1007
EIGEN_STRONG_INLINE Packet8f Bf16ToF32(const Packet8bf &a)
Definition: PacketMath.h:1260
EIGEN_STRONG_INLINE Packet8bf pcast< Packet8f, Packet8bf >(const Packet8f &a)
Definition: TypeCasting.h:107
EIGEN_STRONG_INLINE Packet8f preinterpret< Packet8f, Packet8i >(const Packet8i &a)
Definition: TypeCasting.h:91
EIGEN_STRONG_INLINE Packet8f half2float(const Packet8h &a)
Definition: PacketMath.h:988
EIGEN_STRONG_INLINE Packet8f pcast< Packet8bf, Packet8f >(const Packet8bf &a)
Definition: TypeCasting.h:99
EIGEN_STRONG_INLINE Packet8f pcast< Packet8h, Packet8f >(const Packet8h &a)
Definition: TypeCasting.h:95
__m256i Packet8i
Definition: PacketMath.h:32
EIGEN_STRONG_INLINE Packet8i preinterpret< Packet8i, Packet8f >(const Packet8f &a)
Definition: TypeCasting.h:87
EIGEN_STRONG_INLINE Packet8i pcast< Packet8f, Packet8i >(const Packet8f &a)
Definition: TypeCasting.h:79
EIGEN_STRONG_INLINE Packet8h pcast< Packet8f, Packet8h >(const Packet8f &a)
Definition: TypeCasting.h:103
__m256 Packet8f
Definition: PacketMath.h:31
EIGEN_STRONG_INLINE Packet8bf F32ToBf16(Packet4f p4f)
Definition: PacketMath.h:1252
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
Definition: document.h:416
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181
Definition: BFloat16.h:58
Definition: GenericPacketMath.h:160
Definition: GenericPacketMath.h:148
@ TgtCoeffRatio
Definition: GenericPacketMath.h:152
@ VectorizedCast
Definition: GenericPacketMath.h:150
@ SrcCoeffRatio
Definition: GenericPacketMath.h:151