2008-12-05 Marek Habersack <mhabersack@novell.com>
* configure.in: check whether round (3) and rint (3) are present
in the C library.
2008-12-05 Marek Habersack <mhabersack@novell.com>
* sysmath.c (ves_icall_System_Math_Round2): if round (3) and rint
(3) functions are present in the C library use them to do the
job. If they are absent, make sure that the sum of int_part and
dec_part is rounded before returning. This is necessary due to the
division of dec_part by the power of 10 before the final addition
is performed - if the result is not rounded in some cases it will
yield invalid results.
svn path=/trunk/mono/; revision=120880