From 5570a278695ad1b50bbd79c1b4de87080943650b Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Mon, 25 Mar 2024 00:06:33 +0000 Subject: [PATCH] cross3_product vectorization --- Eigen/src/Core/arch/AVX/TypeCasting.h | 2 +- Eigen/src/Geometry/OrthoMethods.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/AVX/TypeCasting.h b/Eigen/src/Core/arch/AVX/TypeCasting.h index f01622c5a..2581eff66 100644 --- a/Eigen/src/Core/arch/AVX/TypeCasting.h +++ b/Eigen/src/Core/arch/AVX/TypeCasting.h @@ -221,7 +221,7 @@ EIGEN_STRONG_INLINE Packet4d pcast(const Packet4l& a) { template <> EIGEN_STRONG_INLINE Packet4d pcast(const Packet2l& a, const Packet2l& b) { - return _mm256_set_m128d(pcast(b), pcast(a)); + return _mm256_set_m128d((pcast(b)), (pcast(a))); } template <> diff --git a/Eigen/src/Geometry/OrthoMethods.h b/Eigen/src/Geometry/OrthoMethods.h index 34399a73c..a8e050236 100644 --- a/Eigen/src/Geometry/OrthoMethods.h +++ b/Eigen/src/Geometry/OrthoMethods.h @@ -98,7 +98,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE namespace internal { template + bool Vectorizable = bool((evaluator::Flags & evaluator::Flags) & PacketAccessBit)> struct cross3_impl { EIGEN_DEVICE_FUNC static inline typename internal::plain_matrix_type::type run(const VectorLhs& lhs, const VectorRhs& rhs) {