Exemple #1
0
        public static Int128 ModPow(Int128 value, Int128 exponent, Int128 modulus)
        {
            Int128 result;

            UInt128.ModPow(out result.v, ref value.v, ref exponent.v, ref modulus.v);
            return(result);
        }
 public static UInt128 ModularPower(UInt128 value, UInt128 exponent, UInt128 modulus)
 {
     return(UInt128.ModPow(value, exponent, modulus));
 }