https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107753
--- Comment #15 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #14) > Comment #10 contains a simple timing measurement in from my Intel Core2 Duo > based system. gfortran with its current method (ie., -fcx-fortran-rules) > takes 44.5 clock ticks for a complex division. [...] > ticks. I haven't looked at what algorithm C uses, but I suspect its along > the lines you suggest. I may have misread the library implementation of complex division (libgcc2), but it likely does really much more that we need for Fortran. And some of the overhead seems to come from doing many more divisions in the library version than in the current gfortran variant. > The question is likely do we break backwards > compatibility and remove -fcx-fortran-rules or change when/how > -fcx-fortran-rules applies (e.g., add it to -ffast-math?) I would certainly not be happy breaking backwards compatibility, but is there a precise definition of what the "cx-fortran-rules" are? I had the silent hope that manipulating exponents of IEEE floats could be a cheap operation, allowing for a cheaper solution than the expensive method that gets really borderline cases better, although an unreasonable cost.