Lines Matching refs:rp

337   BN_ULONG *ap, *np, *rp, n0, v, carry;
354 rp = r->d;
358 memset(&rp[r->top], 0, (max - r->top) * sizeof(BN_ULONG));
364 for (carry = 0, i = 0; i < nl; i++, rp++) {
365 v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
366 v = (v + carry + rp[nl]) & BN_MASK2;
367 carry |= (v != rp[nl]);
368 carry &= (v <= rp[nl]);
369 rp[nl] = v;
378 rp = ret->d;
385 v = bn_sub_words(rp, ap, np, nl) - carry;
389 nrp = (BN_ULONG *)(((intptr_t)rp & ~m) | ((intptr_t)ap & m));
400 rp[i + 0] = t1;
402 rp[i + 1] = t2;
404 rp[i + 2] = t3;
405 rp[i + 3] = t4;
409 rp[i] = nrp[i], ap[i] = 0;
425 BN_ULONG *ap,*np,*rp,n0,v,carry; in BN_from_montgomery_word() local
437 rp=r->d; in BN_from_montgomery_word()
442 rp[i]=0; in BN_from_montgomery_word()
444 memset(&(rp[r->top]),0,(max-r->top)*sizeof(BN_ULONG)); in BN_from_montgomery_word()
450 for (carry=0, i=0; i<nl; i++, rp++) in BN_from_montgomery_word()
452 v=bn_mul_add_words(rp,np,nl,(rp[0]*n0)&BN_MASK2); in BN_from_montgomery_word()
453 v = (v+carry+rp[nl])&BN_MASK2; in BN_from_montgomery_word()
454 carry |= (v != rp[nl]); in BN_from_montgomery_word()
455 carry &= (v <= rp[nl]); in BN_from_montgomery_word()
456 rp[nl]=v; in BN_from_montgomery_word()
463 rp=ret->d; in BN_from_montgomery_word()
470 v=bn_sub_words(rp,ap,np,nl)-carry; in BN_from_montgomery_word()
475 nrp=(BN_ULONG *)(((PTR_SIZE_INT)rp&~m)|((PTR_SIZE_INT)ap&m)); in BN_from_montgomery_word()
485 rp[i+0]=t1; ap[i+2]=0; in BN_from_montgomery_word()
486 rp[i+1]=t2; ap[i+3]=0; in BN_from_montgomery_word()
487 rp[i+2]=t3; in BN_from_montgomery_word()
488 rp[i+3]=t4; in BN_from_montgomery_word()
491 rp[i]=nrp[i], ap[i]=0; in BN_from_montgomery_word()