This is the mail archive of the gcc-patches@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]

Re: std::norm improvement


" Still, I think
gcc is pointlessly (is that an English word?) decreasing performance
if ffast-math is not on (it's not on even with -O3).
"

No it is not, this is the problem here. That is from the thread you
wrote in.  You did not test every single input to figure out if your
implementation is better or worse.  I think it might be best if you
tested every input include NaNs and infs.  That is where some problems
come into play also I think.

Remember that a NaN input should result in a NaN result.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]