Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
[x86/Linux] Fix dangling DoubleToNumber and NumberToDouble (#8446)
Browse files Browse the repository at this point in the history
This commit enables portable DoubleToNumber and NumberToDouble for
x86/Linux.
  • Loading branch information
parjong authored and jkotas committed Dec 5, 2016
1 parent e5946c9 commit 9330731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classlibnative/bcltype/number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static const char* const negNumberFormats[] = {

static const char posNumberFormat[] = "#";

#if defined(_TARGET_X86_)
#if defined(_TARGET_X86_) && !defined(FEATURE_PAL)

extern "C" void _cdecl /*__stdcall*/ DoubleToNumber(double value, int precision, NUMBER* number);
extern "C" void _cdecl /*__stdcall*/ NumberToDouble(NUMBER* number, double* value);
Expand Down Expand Up @@ -132,7 +132,7 @@ unsigned int Int64DivMod1E9(unsigned __int64* value)

#pragma warning(default:4035)

#else // !(defined(_TARGET_X86_)
#else // _TARGET_X86_ && !FEATURE_PAL

#pragma warning(disable:4273)
extern "C" char* __cdecl _ecvt(double, int, int*, int*);
Expand Down Expand Up @@ -607,7 +607,7 @@ unsigned int Int64DivMod1E9(unsigned __int64* value)



#endif // !(defined(_TARGET_X86_)
#endif // _TARGET_X86_ && !FEATURE_PAL

#if defined(_MSC_VER) && defined(_TARGET_X86_)
#pragma optimize("y", on) // Small critical routines, don't put in EBP frame
Expand Down

0 comments on commit 9330731

Please sign in to comment.