This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, libfortran] PR 52434/48878/38199 Improve floating point formatted writes
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 9 Mar 2012 12:01:01 +0200
- Subject: Re: [Patch, libfortran] PR 52434/48878/38199 Improve floating point formatted writes
- References: <CAO9iq9FAJWxk3AEuBJt1CEjWEwP+Dw5=COjZ1+n8yX17g04Rhw@mail.gmail.com>
On Fri, Mar 9, 2012 at 00:40, Janne Blomqvist <blomqvist.janne@gmail.com> wrote:
> Note that GFortran previously did roundTiesToAway, whereas at least
> glibc snprintf() does roundTiesToEven, so some change in behavior is
> expected. Anyway, this is IMHO for the better, as it avoids biasing
> the magnitude upwards in some common cases. Also, roundTiesToAway is
> the default rounding mode for arithmetic.
Err, roundTiestToEven is the default, that is.
Also, the patch contains a bunch of commented out printf's for
debugging. I will obviously remove those before committing, so please
disregard those when reviewing. Thanks!
--
Janne Blomqvist