diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-07-16 17:35:08 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-07-16 17:35:08 +0200 |
commit | db8e88c9361ea8fc01ca3306743d8b17ad1da473 (patch) | |
tree | 50b7173daef0009221abbeebbe95b23123de9fe5 /test/geo_alignedbox.cpp | |
parent | cfd7f9b84a27d9b88a525560a5d7ee847bc8c507 (diff) |
Fix testing issues with x87 extra precision.
Diffstat (limited to 'test/geo_alignedbox.cpp')
-rw-r--r-- | test/geo_alignedbox.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/geo_alignedbox.cpp b/test/geo_alignedbox.cpp index e9fbfddf1..8e36adbe3 100644 --- a/test/geo_alignedbox.cpp +++ b/test/geo_alignedbox.cpp @@ -15,6 +15,10 @@ #include<iostream> using namespace std; +template<typename T> EIGEN_DONT_INLINE +void kill_extra_precision(T& x) { eigen_assert(&x != 0); } + + template<typename BoxType> void alignedbox(const BoxType& _box) { /* this test covers the following files: @@ -36,6 +40,10 @@ template<typename BoxType> void alignedbox(const BoxType& _box) BoxType b0(dim); BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); BoxType b2; + + kill_extra_precision(b1); + kill_extra_precision(p0); + kill_extra_precision(p1); b0.extend(p0); b0.extend(p1); |