diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:13 +0800 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-20 14:02:49 +0000 |
commit | 084ea153c12cc76674964003d74dbe69ea989e8f (patch) | |
tree | c2b8b1ea4f584215976fd4107de64da27889a312 /js | |
parent | c40bda67bbed2faae019a67d339cf0f0042abc3a (diff) | |
download | UXP-084ea153c12cc76674964003d74dbe69ea989e8f.tar UXP-084ea153c12cc76674964003d74dbe69ea989e8f.tar.gz UXP-084ea153c12cc76674964003d74dbe69ea989e8f.tar.lz UXP-084ea153c12cc76674964003d74dbe69ea989e8f.tar.xz UXP-084ea153c12cc76674964003d74dbe69ea989e8f.zip |
Bug 1430693 - IonMonkey: MIPS: Fix generic NaN for legacy mips (IEEE 754-1985)
Tag: #1542
Diffstat (limited to 'js')
-rw-r--r-- | js/public/Value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/public/Value.h b/js/public/Value.h index 272d9b478..bc0fd0ec7 100644 --- a/js/public/Value.h +++ b/js/public/Value.h @@ -229,7 +229,11 @@ static inline JS::Value PoisonedObjectValue(JSObject* obj); namespace detail { constexpr int CanonicalizedNaNSignBit = 0; +#if defined(__mips__) && !defined(__mips_nan2008) +constexpr uint64_t CanonicalizedNaNSignificand = 0x7FFFFFFFFFFFFULL; +#else constexpr uint64_t CanonicalizedNaNSignificand = 0x8000000000000ULL; +#endif constexpr uint64_t CanonicalizedNaNBits = mozilla::SpecificNaNBits<double, |