diff options
Diffstat (limited to 'external/rapidjson/internal/ieee754.h')
-rw-r--r-- | external/rapidjson/internal/ieee754.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/external/rapidjson/internal/ieee754.h b/external/rapidjson/internal/ieee754.h index 6890f89e8..82bb0b99e 100644 --- a/external/rapidjson/internal/ieee754.h +++ b/external/rapidjson/internal/ieee754.h @@ -40,6 +40,7 @@ public: bool IsNan() const { return (u_ & kExponentMask) == kExponentMask && Significand() != 0; } bool IsInf() const { return (u_ & kExponentMask) == kExponentMask && Significand() == 0; } + bool IsNanOrInf() const { return (u_ & kExponentMask) == kExponentMask; } bool IsNormal() const { return (u_ & kExponentMask) != 0 || Significand() == 0; } bool IsZero() const { return (u_ & (kExponentMask | kSignificandMask)) == 0; } |