3 ms·
D (dlang.org) has a "real" type alongside float and double which represents the widest float available on the target (so 80bits if x87 is available). It does se
by mhh__ 5y ago
D (dlang.org) has a "real" type alongside float and double which represents the widest float available on the target (so 80bits if x87 is available). It does see some use.
(But don't use it without a valid reason or your program is going to be slow because no SIMD)
- Someone 5y ago> a "real" type alongside float and double which represents the widest float available on the target Initial question: what would that be on a system without hardware floating point? Luckily, https://dlang.org/spec/type.html https://dlang.org/spec/type.html says (not 100% unambiguously) it isn’t necessarily “the widest float available on the target“, but either that or, if that doesn’t have both the range and precision of double, double. So, if you decide to use it, you’re guaranteed not to give up range or precision, may gain some, but also may give up performance.