mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Fixed compilation error triggered by MSVC 2008
This commit is contained in:
parent
b820b097b8
commit
6acf2bd472
@ -336,7 +336,7 @@ template<typename Scalar> void packetmath_real()
|
||||
data1[1] = 0;
|
||||
h.store(data2, internal::pexp(h.load(data1)));
|
||||
VERIFY_IS_EQUAL(std::exp(-std::numeric_limits<Scalar>::epsilon()), data2[0]);
|
||||
VERIFY_IS_EQUAL(std::exp(0), data2[1]);
|
||||
VERIFY_IS_EQUAL(std::exp(Scalar(0)), data2[1]);
|
||||
|
||||
data1[0] = (std::numeric_limits<Scalar>::min)();
|
||||
data1[1] = -(std::numeric_limits<Scalar>::min)();
|
||||
@ -401,7 +401,7 @@ template<typename Scalar> void packetmath_real()
|
||||
data1[1] = 0;
|
||||
h.store(data2, internal::plog(h.load(data1)));
|
||||
VERIFY((numext::isnan)(data2[0]));
|
||||
VERIFY_IS_EQUAL(std::log(0), data2[1]);
|
||||
VERIFY_IS_EQUAL(std::log(Scalar(0)), data2[1]);
|
||||
|
||||
data1[0] = (std::numeric_limits<Scalar>::min)();
|
||||
data1[1] = -(std::numeric_limits<Scalar>::min)();
|
||||
|
Loading…
Reference in New Issue
Block a user