News for hackers. Stuff that matters.
Re:Std: Clamp generates less efficient assembly than std:min... by alexey-salmin on Tuesday January 16, 2024 @03:43PM (#39018862)
> It can reorder your computations so that something that used to sum to 1 now sums to 0, it can cause catastrophic cancellation, etc.

Yes, and it could very well be that the correct answer is actually 0 and not 1.

Unless you write your code to explicitly account for fp associativity effects, in which case you don't need generic forum advice about fast-math.

There are no comments on this comment yet.