This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Compute x**(-n) as (1/x)**n
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: gfortran <fortran at gcc dot gnu dot org>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 08 Jun 2004 19:36:41 +0200
- Subject: Re: [gfortran] Compute x**(-n) as (1/x)**n
- References: <40C5F85F.80006@moene.indiv.nluug.nl>
Toon Moene wrote:
The following change, which I bootstrapped on powerpc-unknown-linux-gnu
(C and f95) without regressions, leads the Fortran front-end to generate
expressions x**(-n) with n constant as if they were written (1/x)**n.
Does this deal correctly with integer x? I remember there were some
special cases somewhere.
- Tobi