X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fsysmath.h;h=52a4f7a973fc5e4295a1e3963ff86c7f27bb1faf;hb=HEAD;hp=f8f5778ab418c7fdd52f28a9f8f6cc311d3b9815;hpb=40ba1978bc274c820141fab18177e2bb17efd3b4;p=mono.git diff --git a/mono/metadata/sysmath.h b/mono/metadata/sysmath.h index f8f5778ab41..52a4f7a973f 100644 --- a/mono/metadata/sysmath.h +++ b/mono/metadata/sysmath.h @@ -1,10 +1,13 @@ -/* - * math.h +/** + * \file * * Author: * Dan Lewis (dihlewis@yahoo.co.uk) + * Ludovic Henry (ludovic@xamarin.com) * * (C) Ximian, Inc. 2002 + * Copyright 2015 Xamarin, Inc (https://www.xamarin.com) + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __METADATA_SYSMATH_H__ @@ -12,55 +15,68 @@ #include #include -#include "mono/utils/mono-compiler.h" -extern gdouble ves_icall_System_Math_Floor (gdouble x); -extern gdouble ves_icall_System_Math_Round (gdouble x); -extern gdouble ves_icall_System_Math_Round2 (gdouble value, gint32 digits, gboolean away_from_zero); +gdouble +ves_icall_System_Math_Floor (gdouble x); -extern gdouble +gdouble +ves_icall_System_Math_Round (gdouble x); + +gdouble ves_icall_System_Math_Sin (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Cos (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Tan (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Sinh (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Cosh (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Tanh (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Acos (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Asin (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Atan (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Atan2 (gdouble y, gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Exp (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Log (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Log10 (gdouble x); -extern gdouble +gdouble ves_icall_System_Math_Pow (gdouble x, gdouble y); -extern gdouble +gdouble ves_icall_System_Math_Sqrt (gdouble x); +gdouble +ves_icall_System_Math_Abs_double (gdouble v); + +gfloat +ves_icall_System_Math_Abs_single (gfloat v); + +gdouble +ves_icall_System_Math_SplitFractionDouble (gdouble *v); + +gdouble +ves_icall_System_Math_Ceiling (gdouble v); + #endif