• Home
  • Raw
  • Download

Lines Matching refs:rp

333   BN_ULONG *ap, *np, *rp, n0, v, carry;
350 rp = r->d;
354 memset(&rp[r->top], 0, (max - r->top) * sizeof(BN_ULONG));
360 for (carry = 0, i = 0; i < nl; i++, rp++) {
361 v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
362 v = (v + carry + rp[nl]) & BN_MASK2;
363 carry |= (v != rp[nl]);
364 carry &= (v <= rp[nl]);
365 rp[nl] = v;
374 rp = ret->d;
381 v = bn_sub_words(rp, ap, np, nl) - carry;
385 nrp = (BN_ULONG *)(((intptr_t)rp & ~m) | ((intptr_t)ap & m));
396 rp[i + 0] = t1;
398 rp[i + 1] = t2;
400 rp[i + 2] = t3;
401 rp[i + 3] = t4;
405 rp[i] = nrp[i], ap[i] = 0;
421 BN_ULONG *ap,*np,*rp,n0,v,carry; in BN_from_montgomery_word() local
433 rp=r->d; in BN_from_montgomery_word()
438 rp[i]=0; in BN_from_montgomery_word()
440 memset(&(rp[r->top]),0,(max-r->top)*sizeof(BN_ULONG)); in BN_from_montgomery_word()
446 for (carry=0, i=0; i<nl; i++, rp++) in BN_from_montgomery_word()
448 v=bn_mul_add_words(rp,np,nl,(rp[0]*n0)&BN_MASK2); in BN_from_montgomery_word()
449 v = (v+carry+rp[nl])&BN_MASK2; in BN_from_montgomery_word()
450 carry |= (v != rp[nl]); in BN_from_montgomery_word()
451 carry &= (v <= rp[nl]); in BN_from_montgomery_word()
452 rp[nl]=v; in BN_from_montgomery_word()
459 rp=ret->d; in BN_from_montgomery_word()
466 v=bn_sub_words(rp,ap,np,nl)-carry; in BN_from_montgomery_word()
471 nrp=(BN_ULONG *)(((PTR_SIZE_INT)rp&~m)|((PTR_SIZE_INT)ap&m)); in BN_from_montgomery_word()
481 rp[i+0]=t1; ap[i+2]=0; in BN_from_montgomery_word()
482 rp[i+1]=t2; ap[i+3]=0; in BN_from_montgomery_word()
483 rp[i+2]=t3; in BN_from_montgomery_word()
484 rp[i+3]=t4; in BN_from_montgomery_word()
487 rp[i]=nrp[i], ap[i]=0; in BN_from_montgomery_word()