Lines Matching refs:c0

436 /* mul_add_c(a,b,c0,c1,c2)  -- c+=a*b for three word number c=(c2,c1,c0) */
437 /* mul_add_c2(a,b,c0,c1,c2) -- c+=2*a*b for three word number c=(c2,c1,c0) */
438 /* sqr_add_c(a,i,c0,c1,c2) -- c+=a[i]^2 for three word number c=(c2,c1,c0) */
439 /* sqr_add_c2(a,i,c0,c1,c2) -- c+=2*a[i]*a[j] for three word number c=(c2,c1,c0) */
442 #define mul_add_c(a,b,c0,c1,c2) \
446 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
449 #define mul_add_c2(a,b,c0,c1,c2) \
455 c0=(c0+t1)&BN_MASK2; \
456 if ((c0 < t1) && (((++t2)&BN_MASK2) == 0)) c2++; \
459 #define sqr_add_c(a,i,c0,c1,c2) \
463 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
466 #define sqr_add_c2(a,i,j,c0,c1,c2) \
467 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
471 #define mul_add_c(a,b,c0,c1,c2) { \
474 c0 += t1; t2 += (c0<t1)?1:0; \
478 #define mul_add_c2(a,b,c0,c1,c2) { \
483 c0 += t1; t2 += (c0<t1)?1:0; \
487 #define sqr_add_c(a,i,c0,c1,c2) { \
490 c0 += t1; t2 += (c0<t1)?1:0; \
494 #define sqr_add_c2(a,i,j,c0,c1,c2) \
495 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
499 #define mul_add_c(a,b,c0,c1,c2) { \
503 c0 += t1; t2 += (c0<t1)?1:0; \
507 #define mul_add_c2(a,b,c0,c1,c2) { \
513 c0 += t1; t2 += (c0<t1)?1:0; \
517 #define sqr_add_c(a,i,c0,c1,c2) { \
521 c0 += t1; t2 += (c0<t1)?1:0; \
525 #define sqr_add_c2(a,i,j,c0,c1,c2) \
526 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
529 #define mul_add_c(a,b,c0,c1,c2) \
533 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
536 #define mul_add_c2(a,b,c0,c1,c2) \
544 c0=(c0+t1)&BN_MASK2; \
545 if ((c0 < t1) && (((++t2)&BN_MASK2) == 0)) c2++; \
548 #define sqr_add_c(a,i,c0,c1,c2) \
550 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
553 #define sqr_add_c2(a,i,j,c0,c1,c2) \
554 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
849 BN_ULONG c0,c1,ml,*tp,n0;
863 c0 = 0;
869 mul(tp[j],ap[j],ml,mh,c0);
872 mul(tp[j],ap[j],ml,c0);
875 tp[num] = c0;
881 c0 = 0;
887 mul_add(tp[j],ap[j],ml,mh,c0);
890 mul_add(tp[j],ap[j],ml,c0);
892 c1 = (tp[num] + c0)&BN_MASK2;
894 tp[num+1] = (c1<c0?1:0);
898 c0 = 0;
902 mul_add(c1,np[0],ml,mh,c0);
904 mul_add(c1,ml,np[0],c0);
910 mul_add(c1,np[j],ml,mh,c0);
912 mul_add(c1,ml,np[j],c0);
916 c1 = (tp[num] + c0)&BN_MASK2;
918 tp[num] = tp[num+1] + (c1<c0?1:0);
923 c0 = bn_sub_words(rp,tp,np,num);
924 if (tp[num]!=0 || c0==0)
988 BN_ULONG c0,c1,*tp,n0=*n0p;
998 c0 = bn_mul_add_words(tp,ap,num,bp[i]);
999 c1 = (tp[num] + c0)&BN_MASK2;
1001 tp[num+1] = (c1<c0?1:0);
1003 c0 = bn_mul_add_words(tp,np,num,tp[0]*n0);
1004 c1 = (tp[num] + c0)&BN_MASK2;
1006 tp[num+1] += (c1<c0?1:0);
1012 c0 = bn_sub_words(rp,tp,np,num);
1013 if (tp[num]!=0 || c0==0)