Returns the greatest common divisor of self and i

assert(15.to_bi.gcd(10.to_bi) == 5.to_bi)

Property definitions

gmp $ BigInt :: gcd
    # Returns the greatest common divisor of `self` and `i`
    #
    #     assert(15.to_bi.gcd(10.to_bi) == 5.to_bi)
    fun gcd(i: BigInt): BigInt do
        var res = new NativeMPZ
        val.gcd(res, i.val)
        return new BigInt(res)
    end
lib/gmp/gmp.nit:220,5--227,7