summaryrefslogtreecommitdiffhomepage
path: root/eigen/test/geo_alignedbox.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-03 07:37:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-03 08:13:09 +0200
commit88534ba623421c956d8ffcda2d27f41d704d15ef (patch)
treefccc55245aec3f7381cd525a1355568e10ea37f4 /eigen/test/geo_alignedbox.cpp
parent3ee09beb3f0458fbeb0b0e816f854b9d5b406e6b (diff)
update eigen
Diffstat (limited to 'eigen/test/geo_alignedbox.cpp')
-rw-r--r--eigen/test/geo_alignedbox.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/eigen/test/geo_alignedbox.cpp b/eigen/test/geo_alignedbox.cpp
index 223ff5e..d2339a6 100644
--- a/eigen/test/geo_alignedbox.cpp
+++ b/eigen/test/geo_alignedbox.cpp
@@ -15,17 +15,8 @@
#include<iostream>
using namespace std;
-// 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& /* x */) {
- // This one worked but triggered a warning:
- /* eigen_assert((void*)(&x) != (void*)0); */
- // An alternative could be:
- /* volatile T tmp = x; */
- /* x = tmp; */
-}
+void kill_extra_precision(T& x) { eigen_assert((void*)(&x) != (void*)0); }
template<typename BoxType> void alignedbox(const BoxType& _box)