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

Commit

Permalink
Use Portable Floating-point Arithmetic Helpers (#8447)
Browse files Browse the repository at this point in the history
This commit enables portable floating-point arithmetic helpers for
x86/Linux build.
  • Loading branch information
parjong authored and jkotas committed Dec 5, 2016
1 parent 9330731 commit fdc9e6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/vm/i386/jitinterfacex86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ extern "C" __declspec(naked) Object* F_CALL_CONV JIT_ChkCastClassSpecial(MethodT
}
#endif // FEATURE_PAL

#ifndef FEATURE_PAL
HCIMPL1_V(INT32, JIT_Dbl2IntOvf, double val)
{
FCALL_CONTRACT;
Expand All @@ -348,6 +349,7 @@ HCIMPL1_V(INT32, JIT_Dbl2IntOvf, double val)
FCThrow(kOverflowException);
}
HCIMPLEND
#endif // FEATURE_PAL


FCDECL1(Object*, JIT_New, CORINFO_CLASS_HANDLE typeHnd_);
Expand Down
4 changes: 2 additions & 2 deletions src/vm/jithelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ HCIMPL1_V(UINT64, JIT_Dbl2ULngOvf, double val)
HCIMPLEND


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

HCIMPL1_V(INT64, JIT_Dbl2Lng, double val)
{
Expand Down Expand Up @@ -755,7 +755,7 @@ HCIMPL2_VV(double, JIT_DblRem, double dividend, double divisor)
}
HCIMPLEND

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

#include <optdefault.h>

Expand Down

0 comments on commit fdc9e6c

Please sign in to comment.