Fastest multiply in the world

magic

Active member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
Messages
226
Interesting algorithm. MUL is about 3 times cpu clock compare to ADD.
This can be useful for a critical speed-hungry function.
Btw optimization itself needs time and sometimes makes your code harder to read/maintain.
 

SLotman

Active member
3rd Party Module Dev
Joined
Jul 3, 2017
Messages
195
You can multiply/divide by 2 (or any pow2) just using bit shifting. Nothing can beat that ;)
 
Top Bottom