public static object PowerMod(int x, object y, object z) { if (y is int) { return(PowerMod(x, (int)y, z)); } else if (y is long) { return(Int64Ops.PowerMod(x, y, z)); } else if (y is BigInteger) { return(LongOps.PowerMod(x, y, z)); } return(Ops.NotImplemented); }
public static object PowerMod(int x, int y, object z) { if (z is int) { return(PowerMod(x, y, (int)z)); } else if (z is long) { return(Int64Ops.PowerMod(x, y, (long)z)); } else if (z is BigInteger) { return(LongOps.PowerMod(BigInteger.Create(x), BigInteger.Create(y), (BigInteger)z)); } return(Ops.NotImplemented); }