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]

Re: Surprising Behavior Comparing Floats


On Sat, 11 Jan 2014, Nick wrote:
I'm very surprised by the result in #6.  #7 seems to be doing the same
thing, except that it uses a local variable to hold the sum.

Sounds to me like it could be related to excess precision - checkout the
-ffloat-store option. I don't see it on my machine either way, but I'm
on 4.7.2.

Rob


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