This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Complex divide vs -ffast-math



On Monday, January 28, 2002, at 03:16 PM, Toon Moene wrote:
> Oh, yeah - a typical example where this optimisation would help.
> According to the Fortran promotion rules, DFLOAT(NX*NY*NZ) has to be
> promoted to DOUBLE COMPLEX before performing the division.
>
> However, it is a (triple-)loop invariant quantity, so changing this from
> a complex divide into a complex multiply is a definite win.
>
> How complex :-) is it to do this right w.r.t. RDIV ?

Probably not very.  I'll look at it if you want, but might not get to it 
right away.


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