Skip to main content

gcd

Function gcd 

Source
pub fn gcd(x: i64, y: i64) -> Option<i64>
Expand description

The greatest common divisor of x and y, which is never negative. gcd(0, 0) is 0. None only where it is 2^63, as for gcd(i64::MIN, 0).