mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-19 08:09:36 +08:00
Partly revert changeset 642dddcce29269f266d35e34d34ee83d99a7c116
, just in case the x87 issue popup again
This commit is contained in:
parent
2f7c2459b7
commit
7d5303a083
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user