Skip to content

Commit 2639751

Browse files
author
Jay Krell
committed
Limit 64bit operations to amd64, not 32bit x86.
1 parent 0495eb5 commit 2639751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Common/Common/NumberUtilities.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ namespace Js
174174

175175
NUMBER_UTIL_INLINE uint64 NumberUtilities::ToSpecial(double value)
176176
{
177-
#if defined(_AMD64_) || _M_IX86_FP >= 2 || defined(__AVX__)
177+
#if defined(_AMD64_)
178178
return _mm_cvtsi128_si64(_mm_castpd_si128(_mm_set_sd(value)));
179179
#elif defined(_M_ARM32_OR_ARM64)
180180
return _CopyInt64FromDouble(value);
@@ -207,7 +207,7 @@ namespace Js
207207

208208
NUMBER_UTIL_INLINE double NumberUtilities::ReinterpretBits(int64 value)
209209
{
210-
#if defined(_AMD64_) || _M_IX86_FP >= 2 || defined(__AVX__)
210+
#if defined(_AMD64_)
211211
return _mm_cvtsd_f64(_mm_castsi128_pd(_mm_cvtsi64_si128(value)));
212212
#elif defined(_M_ARM32_OR_ARM64)
213213
return _CopyDoubleFromInt64(value);

0 commit comments

Comments
 (0)