From dee6428a71bd094ea1b720c605e69fba52cd3a20 Mon Sep 17 00:00:00 2001 From: Erik Schultheis Date: Sat, 18 Dec 2021 17:18:16 +0000 Subject: [PATCH] fixed clang warnings about alignment change and floating point precision --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 2 +- Eigen/src/Core/arch/SSE/Complex.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 5f2a13039..d3c314b40 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -494,7 +494,7 @@ EIGEN_UNUSED Packet pexp_double(const Packet _x) { Packet x = _x; - const Packet cst_zero = pset1(0.0f); + const Packet cst_zero = pset1(0.0); const Packet cst_1 = pset1(1.0); const Packet cst_2 = pset1(2.0); const Packet cst_half = pset1(0.5); diff --git a/Eigen/src/Core/arch/SSE/Complex.h b/Eigen/src/Core/arch/SSE/Complex.h index 61e94069c..60308ce24 100644 --- a/Eigen/src/Core/arch/SSE/Complex.h +++ b/Eigen/src/Core/arch/SSE/Complex.h @@ -137,7 +137,7 @@ template<> EIGEN_STRONG_INLINE void prefetch >(const std::co template<> EIGEN_STRONG_INLINE std::complex pfirst(const Packet2cf& a) { - std::complex res; + alignas(alignof(__m64)) std::complex res; _mm_storel_pi((__m64*)&res, a.v); return res; }