Re:A Foray into Go Assembly Programming
by chris_overseas on Monday April 24, 2017 @04:32AM
(#14182738)
In more general terms, take a look at Montgomery multiplication[1] which is where this trick originates. It's a common technique used by compilers to optimise away divisions.
[1] https://en.wikipedia.org/wiki/Montgomery_modular_multiplicat...
In that case, fixed point arithmetic might blow your mind. :)
What the fuck. That's amazing!