NEON Complex Intrinsics

This commit is contained in:
Tobias Wood
2024-08-22 22:46:16 +00:00
committed by Rasmus Munk Larsen
parent f91f8e9ab9
commit 2bf8fe1489
2 changed files with 76 additions and 0 deletions

View File

@@ -654,6 +654,16 @@ struct unpacket_traits<Packet2ul> {
};
};
template <>
EIGEN_STRONG_INLINE Packet2f pzero(const Packet2f& /*a*/) {
return vdup_n_f32(0.0f);
}
template <>
EIGEN_STRONG_INLINE Packet4f pzero(const Packet4f& /*a*/) {
return vdupq_n_f32(0.0f);
}
template <>
EIGEN_STRONG_INLINE Packet2f pset1<Packet2f>(const float& from) {
return vdup_n_f32(from);
@@ -5147,6 +5157,11 @@ struct unpacket_traits<Packet2d> {
};
};
template <>
EIGEN_STRONG_INLINE Packet2d pzero<Packet2d>(const Packet2d& /*a*/) {
return vdupq_n_f64(0.0);
}
template <>
EIGEN_STRONG_INLINE Packet2d pset1<Packet2d>(const double& from) {
return vdupq_n_f64(from);