diff options
Diffstat (limited to 'deps/v8/src/double.h')
-rw-r--r-- | deps/v8/src/double.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/src/double.h b/deps/v8/src/double.h index fcf6906af7..16a3245e9a 100644 --- a/deps/v8/src/double.h +++ b/deps/v8/src/double.h @@ -130,6 +130,12 @@ class Double { return (d64 & kExponentMask) == kExponentMask; } + bool IsNan() const { + uint64_t d64 = AsUint64(); + return ((d64 & kExponentMask) == kExponentMask) && + ((d64 & kSignificandMask) != 0); + } + bool IsInfinite() const { uint64_t d64 = AsUint64(); return ((d64 & kExponentMask) == kExponentMask) && |