4 ms·
> I have never seen the benefit of leaving signed overflow undefined The benefit is that architectures are free to implement it with saturating arithmetic.
by kevin_thibedeau 4y ago
> I have never seen the benefit of leaving signed overflow undefined
The benefit is that architectures are free to implement it with saturating arithmetic.
- Asooka 4y agoThat's fine. Define it as saturating on those architectures. Just being defined as "this never happens" is hugely detrimental to predicting how you're program behaves.