diff options
author | Antonio Sanchez <cantonios@google.com> | 2020-06-29 11:35:46 -0700 |
---|---|---|
committer | Antonio Sánchez <cantonios@google.com> | 2020-06-30 17:28:30 +0000 |
commit | 145e51516fdac7b30d22c11c6878c2805fc3d724 (patch) | |
tree | 5c9aa27311815281138bee2b40f2c4c111f259c5 /test | |
parent | 689b57070db8168aede503075251edf3a9092bd2 (diff) |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/packetmath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 72a9c8d51..dbc1d3f5a 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -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))); |