This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Fix code generated for NINT
- From: "Janne Blomqvist" <blomqvist dot janne at gmail dot com>
- To: "FX Coudert" <fxcoudert at gmail dot com>
- Cc: "Paul Thomas" <paulthomas2 at wanadoo dot fr>, "GFORTRAN list" <fortran at gcc dot gnu dot org>, "GCC-patches list" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 1 Aug 2007 00:56:03 +0300
- Subject: Re: [gfortran,patch] Fix code generated for NINT
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JePAWLDO1As1A2Yt3/p4fnlcux9S0VnQbYuBdlWSSb637MIyYmwWvOwiLbxjQmyaqciN+NKaemZr4Maw1et4GdP3vAeFMAB+Vrf7ZQzYlgc4uxd6A1vQLtNZOdLqV0+Pzj1xcxN1UnaCHC4iWEUBCiMpYWk1uSB9qDmkl7gifEg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iB4vg9GJOareBCNKAX5UsM1KMW2A3dCsoALVc6ivWHlTqj6ftaXriwnsMP2ppit7GHwcSza2PT4bTeNwJel7WMB0AuCa7N+ZvEiBDtEPKmzWIEEfW9dBuNWO7IV9+UTjkztGzecEhewWxUzTpYjhz/CdGVIVcVx2pyC0+gJRAY8=
- References: <1EFD0FF2-E8B1-42F8-9A15-9928DAA7BAF7@gmail.com> <46AFABE4.2010707@wanadoo.fr> <9F375F17-8945-4529-AB63-D9156DA056AC@gmail.com>
On 8/1/07, FX Coudert <fxcoudert@gmail.com> wrote:
> Yes, I know. I have lots of code myself which will probably get a
> large hit in performance due to that patch, and I was really
> reluctant to do it for such a simple case, but I can't find another
> way of fixing it :(
Does builtin_lround expand inline to the previous
INT(x + ((x > 0) ? 0.5 : -0.5))
if -fast-math is enabled? If not, I suppose a PR is warranted?
--
Janne Blomqvist