Small Rust library for calculating greatest common divisor crates.io/crates/gcd
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

utilize >>=

+1 -1
+1 -1
src/lib.rs
··· 39 39 v >>= shift; 40 40 u >>= u.trailing_zeros(); 41 41 loop { 42 - v = v >> (v.trailing_zeros()); 42 + v >>= v.trailing_zeros(); 43 43 if u > v { 44 44 //XOR swap algorithm 45 45 v ^= u;