1 /* math.c - these are based on bob smith's csharp routines */
\r
4 #include <mono/metadata/sysmath.h>
\r
6 static const gdouble MONO_NAN = 0.0 / 0.0;
\r
7 static const gdouble MONO_INF = 1.0 / 0.0;
\r
10 ves_icall_System_Math_Sin (gdouble x)
\r
16 ves_icall_System_Math_Cos (gdouble x)
\r
22 ves_icall_System_Math_Tan (gdouble x)
\r
28 ves_icall_System_Math_Sinh (gdouble x)
\r
34 ves_icall_System_Math_Cosh (gdouble x)
\r
40 ves_icall_System_Math_Tanh (gdouble x)
\r
46 ves_icall_System_Math_Acos (gdouble x)
\r
48 if (x < -1 || x > 1)
\r
55 ves_icall_System_Math_Asin (gdouble x)
\r
57 if (x < -1 || x > 1)
\r
64 ves_icall_System_Math_Atan (gdouble x)
\r
70 ves_icall_System_Math_Atan2 (gdouble y, gdouble x)
\r
72 return atan2 (y, x);
\r
76 ves_icall_System_Math_Exp (gdouble x)
\r
82 ves_icall_System_Math_Log (gdouble x)
\r
93 ves_icall_System_Math_Log10 (gdouble x)
\r
104 ves_icall_System_Math_Pow (gdouble x, gdouble y)
\r
110 ves_icall_System_Math_Sqrt (gdouble x)
\r