This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [FORTRAN PATCH]: Improved integer SIGN intrinsic (& bug-fix)
On Sat, Jan 20, 2007 at 01:34:22PM +0100, FX Coudert wrote:
> >2007-01-19 Roger Sayle <roger@eyesopen.com>
> >
> > * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
> > implementation for the SIGN intrinsic with integral operands.
> > (gfc_conv_intrinsic_minmax): Fix whitespace.
>
> OK for 4.3 and 4.2, as is. Please also include in your commit the
> attached testcase, that includes Brooks' testcase and Steve's
> comment, as well as tests for the largest integer value of each
> integer kind.
>
My comment on Brooks test does not apply because I misread his
code. I sent Roger a private email that (ab)used the SAVE
attribute.
--
Steve