mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Fix denormal check pre c++11.
`float_denorm_style` is an old-style `enum`, so the `denorm_present` symbol only exists in the `std` namespace prior to c++11.
This commit is contained in:
parent
689b57070d
commit
145e51516f
@ -702,7 +702,7 @@ void packetmath_real() {
|
||||
|
||||
// Note: 32-bit arm always flushes denorms to zero.
|
||||
#if !EIGEN_ARCH_ARM
|
||||
if (std::numeric_limits<Scalar>::has_denorm == std::float_denorm_style::denorm_present) {
|
||||
if (std::numeric_limits<Scalar>::has_denorm == std::denorm_present) {
|
||||
data1[0] = std::numeric_limits<Scalar>::denorm_min();
|
||||
data1[1] = -std::numeric_limits<Scalar>::denorm_min();
|
||||
h.store(data2, internal::plog(h.load(data1)));
|
||||
|
Loading…
Reference in New Issue
Block a user