Lines Matching defs:mLen
67 int mLen = MOD_LEN(pME);
73 BNU_CHUNK_T* ps = pu+mLen;
74 BNU_CHUNK_T* pv = ps+mLen;
75 BNU_CHUNK_T* pt = pv+mLen;
83 COPY_BNU(pu, pm, mLen);
84 ZEXPAND_BNU(ps, 0, mLen); ps[0] = 1;
85 COPY_BNU(pv, pa, mLen);
86 ZEXPAND_BNU(pt, 0, mLen);
88 while(!cpEqu_BNU_CHUNK(pv, mLen, 0)) { // while(v>0) {
90 cpLSR_BNU(pu, pu, mLen, 1); // u = u/2;
91 cpAdd_BNU(ps, ps, ps, mLen); // s = 2*s;
94 cpLSR_BNU(pv, pv, mLen, 1); // v = v/2;
95 /*ext +=*/ cpAdd_BNU(pt, pt, pt, mLen); // t = 2*t;
98 int cmpRes = cpCmp_BNU(pu, mLen, pv, mLen);
100 cpSub_BNU(pu, pu, pv, mLen); // u = (u-v);
101 cpLSR_BNU(pu, pu, mLen, 1); // u = u/2;
102 /*ext +=*/ cpAdd_BNU(pt, pt, ps, mLen); // t = t+s;
103 cpAdd_BNU(ps, ps, ps, mLen); // s = 2*s;
106 cpSub_BNU(pv, pv, pu, mLen); // v = (v-u);
107 cpLSR_BNU(pv, pv, mLen, 1); // v = v/2;
108 cpAdd_BNU(ps, ps, pt, mLen); // s = s+t;
109 ext += cpAdd_BNU(pt, pt, pt, mLen); // t = 2*t;
116 if(1!=cpEqu_BNU_CHUNK(pu, mLen, 1)) {
121 ext -= cpSub_BNU(pr, pt, pm, mLen); // if(t>mod) r = t-mod;
122 cpMaskMove_gs(pr, pt, mLen, cpIsNonZero(ext)); // else r = t;
123 cpSub_BNU(pr, pm, pr, mLen); // return r= (mod - r) and k