This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libgfortran] PR 16137: libgfortran on non-C99 targets


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,



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]