This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [libgfortran] PR 16137: libgfortran on non-C99 targets
- From: "Arnaud Desitter" <arnaud dot desitter at ouce dot ox dot ac dot uk>
- To: "Roger Sayle" <roger at eyesopen dot com>
- Cc: <fortran at gcc dot gnu dot org>
- Date: Tue, 3 Aug 2004 10:41:47 +0100
- Subject: Re: [libgfortran] PR 16137: libgfortran on non-C99 targets
- References: <Pine.LNX.4.44.0408022006190.25093-100000@www.eyesopen.com>
Hi,
----- Original Message -----
From: "Roger Sayle" <roger@eyesopen.com>
Sent: Tuesday, August 03, 2004 3:34 AM
Subject: [libgfortran] PR 16137: libgfortran on non-C99 targets
> The following patch is my proposed solution to PR libgfortran/16137,
> +
> + #ifndef HAVE_ATAN2F
> + float
> + atan2f(float x, float y)
> + {
> + return (float) atan2(x, y);
> + }
> + #endif
It does not matter much but you may want use "atan2f(float y, float x)".
> + #ifndef HAVE_COPYSIGNF
> + float
> + copysignf(float x, float y)
> + {
> + return (float) copysignf(x, y);
Need to be a call to 'copysign'.
> + }
Regards,