diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-02-17 13:13:39 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2021-02-17 13:13:39 -0800 |
commit | 0845df7f77c50bd8a99fbf6b943976a6ab6c38ec (patch) | |
tree | 595892196830a04dff20614a4eaaf3a4f8a4fa2e /Eigen/src/Core/arch/AVX | |
parent | 9b51dc7972c9f64727e9c8e8db0c60aaf9aae532 (diff) |
Fix uninitialized warning on AVX.
Diffstat (limited to 'Eigen/src/Core/arch/AVX')
-rw-r--r-- | Eigen/src/Core/arch/AVX/PacketMath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/AVX/PacketMath.h b/Eigen/src/Core/arch/AVX/PacketMath.h index 23a2da8e9..dd3f243d2 100644 --- a/Eigen/src/Core/arch/AVX/PacketMath.h +++ b/Eigen/src/Core/arch/AVX/PacketMath.h @@ -755,7 +755,7 @@ Packet4d pfrexp_generic_get_biased_exponent(const Packet4d& a) { #endif Packet2d exponent_lo = _mm_cvtepi32_pd(vec4i_swizzle1(lo, 0, 2, 1, 3)); Packet2d exponent_hi = _mm_cvtepi32_pd(vec4i_swizzle1(hi, 0, 2, 1, 3)); - Packet4d exponent = _mm256_insertf128_pd(exponent, exponent_lo, 0); + Packet4d exponent = _mm256_insertf128_pd(_mm256_setzero_pd(), exponent_lo, 0); exponent = _mm256_insertf128_pd(exponent, exponent_hi, 1); return exponent; } |