This is the mail archive of the
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.email@example.com>
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.