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