This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: improving the complex number division
- From: dewar at gnat dot com (Robert Dewar)
- To: gcc at gcc dot gnu dot org, jerome dot houdayer at polytechnique dot org
- Date: Sat, 19 Apr 2003 14:46:30 -0400 (EDT)
- Subject: Re: improving the complex number division
It is indeed surprising to find this entirely naive and quite incorrect
implementation of complex division in gcc. This is certainly a computation
for which absolutely standard algorithms exist. I am not clear whether
Jerome is quoting one of these standard algorithms (in which case a reference
would be helpful), or inventing from scratch (in which case I would still be
a little skeptical, though to my not-really-expert-enough eye, the proposed
replacement algorithm looks correct -- I just don't know if it is the best
choice.