Use new atomis with allocated_heap.
[mono.git] / mono / metadata / sysmath.c
index 5338b80c5557b0a65e10ee5729a95a9fdb838447..c5943b44cc908340346131c61e31c353e1a2b190 100644 (file)
@@ -1,5 +1,12 @@
-/* math.c - these are based on bob smith's csharp routines */
-
+/*
+ * sysmath.c: these are based on bob smith's csharp routines 
+ *
+ * Author:
+ *     Mono Project (http://www.mono-project.com)
+ *
+ * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
+ * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
+ */
 #define __USE_ISOC99
 #include <math.h>
 #include <mono/metadata/sysmath.h>
@@ -59,8 +66,6 @@ gdouble ves_icall_System_Math_Round2 (gdouble value, gint32 digits, gboolean awa
                return HUGE_VAL;
        if (value == -HUGE_VAL)
                return -HUGE_VAL;
-       if (digits == 0)
-               return ves_icall_System_Math_Round(value);
        p = pow(10, digits);
 #if defined (HAVE_ROUND) && defined (HAVE_RINT)
        if (away_from_zero)