This is the mail archive of the gcc@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] |
Let's start again from the end of your answer: fast-math includes cx_limited_range, which in turn leads to the very fast method *0* being used. Therefore, in any case, we cannot have performance issues in fast-math mode.I'd prefer not to introduce a situation in which compiling the same code with "gcc" and with "g++" behaves differently and which performs worse in one case than the other. Users expect the C subset of C++ to perform like C.
If we want the C99 rules, let's just turn them on everywhere, and then let users who want "quick and dirty" complex arithmetic to use the flag that turns that on. And, turn that on by default for -ffast-math?
/* 0 means straightforward implementation of complex divide acceptable. 1 means wide ranges of inputs must work for complex divide. 2 means C99-like requirements for complex multiply and divide. */
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |