Subject: CVS commit: src/lib/libm/src
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 08/21/2007 20:10:28
Module Name:	src
Committed By:	drochner
Date:		Tue Aug 21 20:10:28 UTC 2007

Modified Files:
	src/lib/libm/src: s_round.c s_roundf.c

Log Message:
Adopt an (older) fix from FreeBSD: using ceil() on values in (0,0.5]
leads to loss of precision, leading to rounding into the wrong direction
for the case 0.5-epsilon. use floor() instead.
This also fixes a wrong sign of zero returned with non-default rounding
directions.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 src/lib/libm/src/s_round.c src/lib/libm/src/s_roundf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.