3 ms·
In hardware, you control your integer widths completely, so if you add two 32-bit ints to a 33-bit int, there is no chance of overflow. The same goes for multi
by pclmulqdq 3y ago
In hardware, you control your integer widths completely, so if you add two 32-bit ints to a 33-bit int, there is no chance of overflow. The same goes for multiplications, etc.
- SJC_Hacker 3y agoYeah with shifts you can guarantee no overflow, but you have to decide under what circumstances is avoiding overflow/clipping worth the loss of precision. Fixed point typically requires alot more programming, but sometimes its worth it if you know what the data ranges are.