Пример #1
0
        public static OmgNum Pow(OmgNum left, OmgNum right, OmgNum mod)
        {
            OmgNum moddedLeft = Mod(left, mod);
            OmgNum moddedPow  = _Positive(m_multiplier.Pow(left.Raw, right.Raw, mod.Raw));

            moddedLeft.Release();
            return(moddedPow);
        }
Пример #2
0
        private static OmgNum _BinaryModded(OmgNum left, OmgNum right, OmgNum mod, Func <OmgNum, OmgNum, OmgNum> binFunc)
        {
            OmgNum res = _WithModded(left, right, mod, binFunc);

            OmgNum resModded = Mod(res, mod);

            res.Release();

            return(resModded);
        }
Пример #3
0
 public void Release()
 {
     A.Release();
     B.Release();
     M.Release();
 }