Skip to content

Commit

Permalink
[x86/Linux] Fix dangling DoubleToNumber and NumberToDouble (dotnet/co…
Browse files Browse the repository at this point in the history
…reclr#8446)

This commit enables portable DoubleToNumber and NumberToDouble for
x86/Linux.

Commit migrated from dotnet/coreclr@9330731
  • Loading branch information
parjong authored and jkotas committed Dec 5, 2016
1 parent 12d4254 commit d01e164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/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 d01e164

Please sign in to comment.