aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-12-14 23:13:54 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-12-14 23:13:54 -0500
commit4948448939ca6694179ea3f04dd79c74cea7cb82 (patch)
treed7959ef07a7b0a5dc9916130bfaa450430054113
parent39095c8faa00a4a8a3409a25986f0d1ac58c0606 (diff)
*use scalar instructions, packet not needed here
*remove unused var warning
-rw-r--r--Eigen/src/LU/arch/Inverse_SSE.h2
-rw-r--r--test/prec_inverse_4x4.cpp1
2 files changed, 1 insertions, 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<Architecture::SSE, float, MatrixType, ResultType
det = _mm_add_ss(_mm_shuffle_ps(det, det, 0xB1), det);
// tmp1= _mm_rcp_ss(det);
// det= _mm_sub_ss(_mm_add_ss(tmp1, tmp1), _mm_mul_ss(det, _mm_mul_ss(tmp1, tmp1)));
- det = _mm_div_ps(ei_pset1<float>(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<typename MatrixType> 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)
{