4 ms·
Those are not problems a new number format can fix though. The issues with x87 precision are due to compilers freely converting between different representation
by yorwba 7y ago
Those are not problems a new number format can fix though. The issues with x87 precision are due to compilers freely converting between different representations without this being indicated in the program.
Posits also can't achieve associativity in all conditions, you need to use "quire" accumulators with higher precision. However, if the decision of using quires were left to the compiler, you'd end up with the exact same problem of unclear precision as for x87. To avoid that, those accumulators will need to be annotated in the code, and straightforward programs that do not use them will continue to exhibit non-associativity.
- Lerc 7y agoThe observation that all of the +-*/ operations in a basic block can be reduced to a single round with the quire would get you a reasonable way with the compiler alone. Overall I'm not sold on the quire thing. It seems like a great big accumulator is a solution that is fairly independent from the floating point format.
- vanderZwan 7y ago> It seems like a great big accumulator is a solution that is fairly independent from the floating point format. It could still be a good idea to mandate a standard version in the spec for consistent behavior.