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

            UInt128.ModAdd(out c.v, ref a.v, ref b.v, ref modulus.v);
            return(c);
        }
 public static UInt128 ModularSum(UInt128 a, UInt128 b, UInt128 modulus)
 {
     return(UInt128.ModAdd(a, b, modulus));
 }