2 ms·
> Integer division comes to mind. In case you don’t know about it: https://libdivide.com/ https://libdivide.com/ Does what you ask for, but for 8-bit CPUs lik
by Someone 3y ago
> Integer division comes to mind.
In case you don’t know about it: https://libdivide.com/ https://libdivide.com/
Does what you ask for, but for 8-bit CPUs like the 6502, you probably would want to do additional work (I would at least read the output of the C compiler to see whether there’s an ‘easily’ cuttable corner left)
- duskwuff 3y ago> In case you don’t know about it: https://libdivide.com/ https://libdivide.com/ The division routines generated by libdivide assume that fast integer multiplication is available. If it isn't, you may be better off with other approaches.