3 ms·
Your comment actually swayed my opinion. If you are to do anything useful after the overflow, you'll need branching...
by brohee 6y ago
Your comment actually swayed my opinion. If you are to do anything useful after the overflow, you'll need branching...
- R0b0t1 6y agoNo, sometimes overflow is so rare the trap saves you time in the majority case. Also sometimes panicking on hardware trap is the useful thing. If we had more ALU variety these discussions wouldn't pop up. Saturating arithmetic, bounded arithmetic, etc are all useful and safer by default in most cases.