Hacker News new | ask | show | jobs
by johnbcoughlin 703 days ago
Such optimizations may be forbidden by the fact that floating point addition is not associative unless you tell the compiler not to worry about that (I believe)
2 comments

> floating point addition is not associative unless you tell the compiler not to worry about that

Ah yes, fun and safe math optimizations.

Ah yes, I always forget about the rules with floats. My line of work only ever uses ints.