public static XInt operator %(XInt x, XInt mod) { var result = new XInt(); mpz_mod(ref result.impl, ref x.impl, ref mod.impl); return result; }