3 ms·
Is the mult5 example an actual piece of code of your program? Any multiplication where one multiplicand is a constant should be much faster with shifts and add
by microtherion 6y ago
Is the mult5 example an actual piece of code of your program?
Any multiplication where one multiplicand is a constant should be much faster with shifts and adds than with a loop. mult5, e.g. is: x+(x<<2)
- druzyek 6y agoRight, I do this in the assembly versions everywhere I multiply by a constant. mult5 is just an example.