[PATCH] Make the _gfortran_pow* const

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Sun Nov 26 12:34:00 GMT 2006


Andrew Pinski <pinskia@gmail.com> wrote on Sun, 26 Nov 2006:
>   This patch makes the _gfortran_pow* function constant functions as the
> return value is only dependent on those values and they don't have any
> special side effects.
>
> This patch speeds up my father's code by about 10% where he has a couple
> of rd**3.

Why are they not compiled as rd*rd*rd?  We have code which should do  
just that.

- Tobi

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Fortran mailing list