mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-10 15:16:31 +08:00
Fix alignment bug in avx pcast<Packet4l, Packet4d>
This commit is contained in:
parent
4bd382df56
commit
5996176b88
@ -240,8 +240,8 @@ EIGEN_STRONG_INLINE Packet4d pcast<Packet4l, Packet4d>(const Packet4l& a) {
|
|||||||
#if defined(EIGEN_VECTORIZE_AVX512DQ) && defined(EIGEN_VECTORIZE_AVS512VL)
|
#if defined(EIGEN_VECTORIZE_AVX512DQ) && defined(EIGEN_VECTORIZE_AVS512VL)
|
||||||
return _mm256_cvtepi64_pd(a);
|
return _mm256_cvtepi64_pd(a);
|
||||||
#else
|
#else
|
||||||
EIGEN_ALIGN16 int64_t aux[4];
|
int64_t aux[4];
|
||||||
pstore(aux, a);
|
pstoreu(aux, a);
|
||||||
return _mm256_set_pd(static_cast<double>(aux[3]), static_cast<double>(aux[2]), static_cast<double>(aux[1]),
|
return _mm256_set_pd(static_cast<double>(aux[3]), static_cast<double>(aux[2]), static_cast<double>(aux[1]),
|
||||||
static_cast<double>(aux[0]));
|
static_cast<double>(aux[0]));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user