Core: Have R4300iOp::COP1_D_SQRT inline asm version to only compile in Visual Studio
This commit is contained in:
parent
00c5057b17
commit
d4dbc5a3f4
|
@ -2519,7 +2519,7 @@ void R4300iOp::COP1_D_DIV()
|
||||||
*_FPR_UDW[m_Opcode.fd] = *(uint64_t *)&Result;
|
*_FPR_UDW[m_Opcode.fd] = *(uint64_t *)&Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__i386__) || defined(_M_IX86)
|
#if defined(_MSC_VER) && (defined(__i386__) || defined(_M_IX86))
|
||||||
static double correct_sqrt(double a)
|
static double correct_sqrt(double a)
|
||||||
{
|
{
|
||||||
__asm
|
__asm
|
||||||
|
@ -2532,7 +2532,7 @@ static double correct_sqrt(double a)
|
||||||
|
|
||||||
void R4300iOp::COP1_D_SQRT()
|
void R4300iOp::COP1_D_SQRT()
|
||||||
{
|
{
|
||||||
#if defined(__i386__) || defined(_M_IX86)
|
#if defined(_MSC_VER) && (defined(__i386__) || defined(_M_IX86))
|
||||||
_controlfp(_PC_53, _MCW_PC);
|
_controlfp(_PC_53, _MCW_PC);
|
||||||
#endif
|
#endif
|
||||||
if (InitFpuOperation(((FPStatusReg &)_FPCR[31]).RoundingMode))
|
if (InitFpuOperation(((FPStatusReg &)_FPCR[31]).RoundingMode))
|
||||||
|
@ -2544,7 +2544,7 @@ void R4300iOp::COP1_D_SQRT()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#if defined(__i386__) || defined(_M_IX86)
|
#if defined(_MSC_VER) && (defined(__i386__) || defined(_M_IX86))
|
||||||
double Result = (double)correct_sqrt(*(double *)_FPR_D[m_Opcode.fs]);
|
double Result = (double)correct_sqrt(*(double *)_FPR_D[m_Opcode.fs]);
|
||||||
#else
|
#else
|
||||||
double Result = (double)sqrt(*(double *)_FPR_D[m_Opcode.fs]);
|
double Result = (double)sqrt(*(double *)_FPR_D[m_Opcode.fs]);
|
||||||
|
|
Loading…
Reference in New Issue