Elektrine lite

← Feed

@Doomed_Daniel@mastodon.gamedev.place

Post #2797248

2026-04-14 20:54 UTC

@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

Replies (1)

  • @zeux@mastodon.gamedev.place 2026-04-14 21:04

    @Doomed_Daniel@mastodon.gamedev.place @lisyarus@mastodon.gamedev.place I agree that contraction should not be enabled unconditionally; Rust is an example of a language that doesn't do that - it follows IEEE 754 strictly. IEEE 754 does not explicitly allow contractions. In fact it has language that prohibits these by default, which C doesn't follow (clang will synthesize fma unconditionally without optimizations when supported)

    Open ##2797249