You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Runtime/Library/JavascriptNumber.inl
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -147,11 +147,7 @@ namespace Js
147
147
148
148
inline Var JavascriptNumber::ToVar(double value)
149
149
{
150
-
#if defined(_MSC_VER) && defined(_AMD64_)
151
-
uint64 val = _mm_cvtsi128_si64(_mm_castpd_si128(_mm_set_sd(value)));
152
-
#else
153
-
uint64 val = *(uint64*)&value;
154
-
#endif
150
+
const uint64 val = ToSpecial(value);
155
151
AssertMsg(!IsNan(value) || ToSpecial(value) == k_NegativeNan || ToSpecial(value) == 0x7FF8000000000000ull, "We should only produce a NaN with this value");
0 commit comments