diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-12-16 09:25:14 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-12-16 09:25:14 +0100 |
commit | 7d5303a083c93f1a04b09aaa6fd35481315b043e (patch) | |
tree | 44adc2d5e749c429dcf57af2f3ede52ec07ee7f1 /test/geo_alignedbox.cpp | |
parent | 2f7c2459b70b02f0fcc1a8243fba491d1a0e9c90 (diff) |
Partly revert changeset 642dddcce29269f266d35e34d34ee83d99a7c116
, just in case the x87 issue popup again
Diffstat (limited to 'test/geo_alignedbox.cpp')
-rw-r--r-- | test/geo_alignedbox.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/geo_alignedbox.cpp b/test/geo_alignedbox.cpp index eca292f4c..223ff5eea 100644 --- a/test/geo_alignedbox.cpp +++ b/test/geo_alignedbox.cpp @@ -15,9 +15,17 @@ #include<iostream> using namespace std; -// TODO not sure if this is actually still necessary anywhere ... +// NOTE the following workaround was needed on some 32 bits builds to kill extra precision of x87 registers. +// It seems that it os not needed anymore, but let's keep it here, just in case... + template<typename T> EIGEN_DONT_INLINE -void kill_extra_precision(T& ) { } +void kill_extra_precision(T& /* x */) { + // This one worked but triggered a warning: + /* eigen_assert((void*)(&x) != (void*)0); */ + // An alternative could be: + /* volatile T tmp = x; */ + /* x = tmp; */ +} template<typename BoxType> void alignedbox(const BoxType& _box) |