double flrTempVal = Floor(a + 0.5);
- if ((a == (Floor(a) + 0.5)) && (fmod(flrTempVal, 2.0) != 0))
+ if ((a == (Floor(a) + 0.5)) && (FMod(flrTempVal, 2.0) != 0))
{
flrTempVal -= 1.0;
}
if (mode == MidpointRounding.AwayFromZero)
{
- var fraction = modf(value, &value);
+ var fraction = ModF(value, &value);
if (Abs(fraction) >= 0.5)
{
public static unsafe double Truncate(double d)
{
- modf(d, &d);
+ ModF(d, &d);
return d;
}
public static extern double Tanh(double value);
[MethodImpl(MethodImplOptions.InternalCall)]
- private static extern double fmod(double x, double y);
+ private static extern double FMod(double x, double y);
[MethodImpl(MethodImplOptions.InternalCall)]
- private static extern unsafe double modf(double x, double* intptr);
+ private static extern unsafe double ModF(double x, double* intptr);
}
}
FCIntrinsic("Cosh", COMDouble::Cosh, CORINFO_INTRINSIC_Cosh)
FCIntrinsic("Exp", COMDouble::Exp, CORINFO_INTRINSIC_Exp)
FCIntrinsic("Floor", COMDouble::Floor, CORINFO_INTRINSIC_Floor)
- FCFuncElement("fmod", COMDouble::FMod)
+ FCFuncElement("FMod", COMDouble::FMod)
FCFuncElement("Log", COMDouble::Log)
FCIntrinsic("Log10", COMDouble::Log10, CORINFO_INTRINSIC_Log10)
- FCFuncElement("modf", COMDouble::ModF)
+ FCFuncElement("ModF", COMDouble::ModF)
FCIntrinsic("Pow", COMDouble::Pow, CORINFO_INTRINSIC_Pow)
FCIntrinsic("Sin", COMDouble::Sin, CORINFO_INTRINSIC_Sin)
FCIntrinsic("Sinh", COMDouble::Sinh, CORINFO_INTRINSIC_Sinh)