This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ColdFire 31/63] Fix rounding problems in fpgnulib.c
On Wed, 2007-01-10 at 11:39 +0000, Richard Sandiford wrote:
> This patch fixes two bugs in fpgnulib.c's __truncdfsf2. First,
> it was not rounding to nearest even; it was rounding halfway cases
> towards infinity instead. Second, it was not detecting overflow
> in subnormal numbers (i.e. cases where a DFmode subnormal rounds
> to FLT_MIN).
>
> Richard
>
>
> gcc/
> 200x-xx-xx Nathan Sidwell <nathan@codesourcery.com>
>
> * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
> nearest even, fix denormal rounding overflow.
OK.
Jeff