This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix round/roundf in intrinsics/c99_functions.c
- From: Tobias Burnus <burnus at net-b dot de>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Sat, 28 Mar 2009 10:39:08 +0100
- Subject: Re: [PATCH] Fix round/roundf in intrinsics/c99_functions.c
Hi Dave,
a belate review.
John David Anglin wrote:
> This patch fixes the failure of nint_2.f90 on hppa*-*-hpux11*.
> The problem was traced to a IEEE rounding issue in the statement
> "if (t - x > 0.5)".
http://gcc.gnu.org/ml/gcc-patches/2008-12/msg01221.html
The patch is OK. Thanks for fixing it.
Tobias
> 2008-12-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
>
> PR fortran/33595
> * intrinsics/c99_functions.c (round): Use floor instead of ceil.
> Revise checks to round up.
> (roundf): Likewise.