mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Remove static constant declaration: this enforces compiler to generate costly code for thread safety.
This commit is contained in:
parent
79574e384e
commit
18884f17d7
@ -726,7 +726,7 @@ QuaternionBase<Derived>::slerp(const Scalar& t, const QuaternionBase<OtherDerive
|
||||
using std::acos;
|
||||
using std::sin;
|
||||
using std::abs;
|
||||
static const Scalar one = Scalar(1) - NumTraits<Scalar>::epsilon();
|
||||
const Scalar one = Scalar(1) - NumTraits<Scalar>::epsilon();
|
||||
Scalar d = this->dot(other);
|
||||
Scalar absD = abs(d);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user