Post #2797247
2026-04-14 20:53 UTC
@Doomed_Daniel@mastodon.gamedev.place @lisyarus@mastodon.gamedev.place This is not an IEEE754 problem; IEEE754 defines FMA and unfused mul/add. It's up to each language to figure out how to compile compound expressions and what is permissible; C/C++ allow contraction by default, so you do get different results based on the platform or the underlying model - but you can also turn contraction off to fix this, or use languages that don't allow this implicit conversion.
Replies (1)
-
@Doomed_Daniel@mastodon.gamedev.place 2026-04-14 20:54
@zeux@mastodon.gamedev.place @lisyarus@mastodon.gamedev.place IEEE754 explicitly allows contractions IMHO compilers should put them behind -ffast-math or similar, not enabled by default