News for hackers. Stuff that matters.
Re:GCD and the magic of subtraction by yxhuvud on Tuesday August 25, 2020 @10:34AM (#24271729)
The problem efficiency wise is that modulo (and any other form of division) is really slow. Therefore a binary version of this algorithm exist that only do divison by 2, which is faster as it can be implemented by using a shift instruction.

There are no comments on this comment yet.