fixed clang warnings about alignment change and floating point precision

This commit is contained in:
Erik Schultheis
2021-12-18 17:18:16 +00:00
committed by Rasmus Munk Larsen
parent d0b4b75fbb
commit dee6428a71
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ template<> EIGEN_STRONG_INLINE void prefetch<std::complex<float> >(const std::co
template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet2cf>(const Packet2cf& a)
{
std::complex<float> res;
alignas(alignof(__m64)) std::complex<float> res;
_mm_storel_pi((__m64*)&res, a.v);
return res;
}