public static XInt GreatestCommonDivisor(XInt x, XInt y) { var z = new XInt(); mpz_gcd(ref z.impl, ref x.impl, ref y.impl); return z; }