2 ms·
When doing integer math with medium sized numbers on systems without floating point hardware, I have to be careful to arrange operations so they do not overflow
by nitrogen 11y ago
When doing integer math with medium sized numbers on systems without floating point hardware, I have to be careful to arrange operations so they do not overflow, and sometimes it's still necessary to give up and use a 64-bit type on a 32-bit CPU.
An example calculation would be projecting a 3D coordinate into a 2D space.