Mill Computing, Inc. › Forums › The Mill › Architecture › Arbitrary precission integer arithmetic hardware help › Reply To: Arbitrary precission integer arithmetic hardware help
If I remember correctly from one of the talks, every math op had 4 versions:
1. saturating: 250 + 30 = 255 (8 bits);
1. excepting: 250 + 30 = 💣;
1. wrap-around: 250 + 30 = 24;
1. expanding: 250 + 30 = 280 (16×8 bits => 2×8×8 bits);
I believe arbitrary-precision math can be easily implemented using the excepting versions (just handle the special case in an interrupt).
— nachokb