by emmelaich · 9y ago · 0 comments
I wonder if you could make a template specialization for set of floats that would fix the problem. I suspect not easily.
I'll wander off and look at the source now ...
There is a bizarre notion of non-determinism that plagues their reputation. People think that adding the same two numbers on two different CPUs can produce different results, or even that adding the same two numbers on the same CPU can have different results.
No wonder when bug #323 causes floats to compare differently when you come back and read them later!
When you use SSE math exclusively the weirdness of doing calculations in a different precision then what you store goes away.