logoalt Hacker News

Sesse__yesterday at 6:07 PM0 repliesview on HN

No, it's not equivalent for floating point, so a compiler won't do it unless you do -fassociative-math (or a superset, such as -ffast-math), in which case all correctness bets are off.