From 452371cead5e83131a816b1069e1aec4b9c6cf36 Mon Sep 17 00:00:00 2001 From: Anuj Rawat Date: Thu, 9 Jan 2020 11:50:50 -0800 Subject: [PATCH] Fix for gcc build error when using Eigen headers with AVX512 --- Eigen/src/Core/arch/AVX512/MathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/AVX512/MathFunctions.h b/Eigen/src/Core/arch/AVX512/MathFunctions.h index 0346c1d95..67043d01b 100644 --- a/Eigen/src/Core/arch/AVX512/MathFunctions.h +++ b/Eigen/src/Core/arch/AVX512/MathFunctions.h @@ -72,7 +72,7 @@ plog(const Packet16f& _x) { x = pmax(x, p16f_min_norm_pos); // Extract the shifted exponents. - Packet16f emm0 = _mm512_cvtepi32_ps(_mm512_srli_epi32(preinterpret(x), 23)); + Packet16f emm0 = _mm512_cvtepi32_ps(_mm512_srli_epi32((preinterpret(x)), 23)); Packet16f e = _mm512_sub_ps(emm0, p16f_126f); // Set the exponents to -1, i.e. x are in the range [0.5,1).