Skip denormal test if Cond is false.
This commit is contained in:
parent
d819a33bf6
commit
711803c427
@ -693,7 +693,7 @@ void packetmath_test_IEEE_corner_cases(const RefFunctorT& ref_fun,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test for subnormals.
|
// Test for subnormals.
|
||||||
if (std::numeric_limits<Scalar>::has_denorm == std::denorm_present) {
|
if (Cond && std::numeric_limits<Scalar>::has_denorm == std::denorm_present) {
|
||||||
|
|
||||||
for (int scale = 1; scale < 5; ++scale) {
|
for (int scale = 1; scale < 5; ++scale) {
|
||||||
// When EIGEN_FAST_MATH is 1 we relax the conditions slightly, and allow the function
|
// When EIGEN_FAST_MATH is 1 we relax the conditions slightly, and allow the function
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user