Lines Matching refs:nl
181 int nl,max,i; in BN_from_montgomery_word() local
184 nl=n->top; in BN_from_montgomery_word()
185 if (nl == 0) { ret->top=0; return(1); } in BN_from_montgomery_word()
187 max=(2*nl); /* carry is stored separately */ in BN_from_montgomery_word()
206 fprintf(stderr,"word BN_from_montgomery_word %d * %d\n",nl,nl); in BN_from_montgomery_word()
208 for (carry=0, i=0; i<nl; i++, rp++) in BN_from_montgomery_word()
221 v=bn_mul_add_words(rp,np,nl,(BN_ULONG) t1); in BN_from_montgomery_word()
224 v=bn_mul_add_words(rp,np,nl,(rp[0]*n0)&BN_MASK2); in BN_from_montgomery_word()
226 v = (v+carry+rp[nl])&BN_MASK2; in BN_from_montgomery_word()
227 carry |= (v != rp[nl]); in BN_from_montgomery_word()
228 carry &= (v <= rp[nl]); in BN_from_montgomery_word()
229 rp[nl]=v; in BN_from_montgomery_word()
232 if (bn_wexpand(ret,nl) == NULL) return(0); in BN_from_montgomery_word()
233 ret->top=nl; in BN_from_montgomery_word()
237 ap=&(r->d[nl]); in BN_from_montgomery_word()
245 v=bn_sub_words(rp,ap,np,nl)-carry; in BN_from_montgomery_word()
252 for (i=0,nl-=4; i<nl; i+=4) in BN_from_montgomery_word()
265 for (nl+=4; i<nl; i++) in BN_from_montgomery_word()
269 if (bn_sub_words (rp,ap,np,nl)-carry) in BN_from_montgomery_word()
270 memcpy(rp,ap,nl*sizeof(BN_ULONG)); in BN_from_montgomery_word()