Exemple #1
0
        public static Int128 ModMul(Int128 a, Int128 b, Int128 modulus)
        {
            Int128 c;

            UInt128.ModMul(out c.v, ref a.v, ref b.v, ref modulus.v);
            return(c);
        }
Exemple #2
0
 public static UInt128 ModularProduct(UInt128 a, UInt128 b, UInt128 modulus)
 {
     return(UInt128.ModMul(a, b, modulus));
 }