On 04/28/2013 12:39 PM, Marco Leise wrote:

> What worries me is that this jeopardizes the efforts put into
> C to make floating point calculations the same under all
> circumstances.

That is news to me. I remember knowing this problem from C. Perhaps something new in the C standard that I haven't been following?

> GCC for example has the fast-math switch if you
> really want just the fastest way to get a result, but
> otherwise follows strict evaluation and assignment order of
> floating point math even in const-folding, so situations like
> these don't occur.

That may be gcc's attempt at bringing sanity to this aspect of C.

Ali

Reply via email to