From 4948448939ca6694179ea3f04dd79c74cea7cb82 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 14 Dec 2009 23:13:54 -0500 Subject: [PATCH] *use scalar instructions, packet not needed here *remove unused var warning --- Eigen/src/LU/arch/Inverse_SSE.h | 2 +- test/prec_inverse_4x4.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Eigen/src/LU/arch/Inverse_SSE.h b/Eigen/src/LU/arch/Inverse_SSE.h index 371861aa5..30ce81af7 100644 --- a/Eigen/src/LU/arch/Inverse_SSE.h +++ b/Eigen/src/LU/arch/Inverse_SSE.h @@ -127,7 +127,7 @@ struct ei_compute_inverse_size4(1.0f), det); // <--- yay, one original line not copied from Intel + det = _mm_div_ss(_mm_set_ss(1.0f), det); // <--- yay, one original line not copied from Intel det = _mm_shuffle_ps(det, det, 0x00); // warning, Intel's variable naming is very confusing: now 'det' is 1/det ! diff --git a/test/prec_inverse_4x4.cpp b/test/prec_inverse_4x4.cpp index 8b7dbd8e7..e1b05aa0d 100644 --- a/test/prec_inverse_4x4.cpp +++ b/test/prec_inverse_4x4.cpp @@ -30,7 +30,6 @@ template void inverse_permutation_4x4() { typedef typename MatrixType::Scalar Scalar; typedef typename MatrixType::RealScalar RealScalar; - double error_max = 0.; Vector4i indices(0,1,2,3); for(int i = 0; i < 24; ++i) {