3 ms·
The section on computing magic numbers for integer division is quite useful if you find yourself implementing a vectorized version of an algorithm that calls fo
by anonymoushn 4y ago
The section on computing magic numbers for integer division is quite useful if you find yourself implementing a vectorized version of an algorithm that calls for integer division or integer modulus, since these instructions typically don't exist
- mhh__ 4y agoNote that some fairly big hardware didn't have them either. Itanium and DEC Alpha didn't have integer divide IIRC. Cheap RISC-V also probably won't.