News for hackers. Stuff that matters.
Re:Optimizations Enabled by -ffast-Math by SeanLuke on Wednesday October 20, 2021 @03:13PM (#28934856)
* x+0.0 cannot be optimized to x because that is not true when x is -0.0

Wait, what? What is x + -0.0 then? What are the special cases? The only case I can think of would be 0.0 + -0.0.

Re:Optimizations Enabled by -ffast-Math by foo92691 on Wednesday October 20, 2021 @03:18PM (#28934913)
Seems like it might depend on the FPU rounding mode?

https://en.wikipedia.org/wiki/Signed_zero#Arithmetic