This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: complex numbers
Hello
> >However I think if flag_complex_divide_method = 1 fix the problem it would
> >be a good idea to set it by default.
> >
> >
> ... but notice that this issue is tricky: there are computational issues
> (we are adding
> at least a branch for each division) and correctness issues (what about
> C99?)
As I see it the naive formula needs
6 multipications, 2 divisions and 3 additions/subtractions
and the improved formua needs
1 comparision, 3 multipactions, 3 divisions and 3 additions/subtractions
This look like a good deal. However for floting point computations I
prevere good results over fast results.
What do you meen with "correctness issues"?
Andreas Klein