complex division alogrithm?

Toon Moene toon@moene.indiv.nluug.nl
Fri May 7 20:31:00 GMT 2004


Steve Kargl wrote:
> On Fri, May 07, 2004 at 09:15:24PM +0200, Toon Moene wrote:

>>>I haven't had time to implement a f2c-like algorithm, but I
>>>should be able to get it this weekend.

>>Are you sure we have to do this in the Fortran frontend ?  Can't we just 
>>hand complex division as a GENERIC expression to be expanded by GIMPLE ?

> program a
>   complex z
>   z = (1,9)/(7,6)
> end program

> The frontend will reduce the above division. 

Ah, I missed this part - you're talking about *constant* complex 
division, to be evaluated by the frontend.

Cheers,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)



More information about the Fortran mailing list