Home | History | Annotate | Download | only in bn

Lines Matching refs:c0

429 /* mul_add_c(a,b,c0,c1,c2)  -- c+=a*b for three word number c=(c2,c1,c0) */
430 /* mul_add_c2(a,b,c0,c1,c2) -- c+=2*a*b for three word number c=(c2,c1,c0) */
431 /* sqr_add_c(a,i,c0,c1,c2) -- c+=a[i]^2 for three word number c=(c2,c1,c0) */
432 /* sqr_add_c2(a,i,c0,c1,c2) -- c+=2*a[i]*a[j] for three word number c=(c2,c1,c0) */
435 #define mul_add_c(a,b,c0,c1,c2) \
439 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
442 #define mul_add_c2(a,b,c0,c1,c2) \
448 c0=(c0+t1)&BN_MASK2; \
449 if ((c0 < t1) && (((++t2)&BN_MASK2) == 0)) c2++; \
452 #define sqr_add_c(a,i,c0,c1,c2) \
456 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
459 #define sqr_add_c2(a,i,j,c0,c1,c2) \
460 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
464 #define mul_add_c(a,b,c0,c1,c2) { \
467 c0 += t1; t2 += (c0<t1)?1:0; \
471 #define mul_add_c2(a,b,c0,c1,c2) { \
476 c0 += t1; t2 += (c0<t1)?1:0; \
480 #define sqr_add_c(a,i,c0,c1,c2) { \
483 c0 += t1; t2 += (c0<t1)?1:0; \
487 #define sqr_add_c2(a,i,j,c0,c1,c2) \
488 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
492 #define mul_add_c(a,b,c0,c1,c2) { \
496 c0 += t1; t2 += (c0<t1)?1:0; \
500 #define mul_add_c2(a,b,c0,c1,c2) { \
506 c0 += t1; t2 += (c0<t1)?1:0; \
510 #define sqr_add_c(a,i,c0,c1,c2) { \
514 c0 += t1; t2 += (c0<t1)?1:0; \
518 #define sqr_add_c2(a,i,j,c0,c1,c2) \
519 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
522 #define mul_add_c(a,b,c0,c1,c2) \
526 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
529 #define mul_add_c2(a,b,c0,c1,c2) \
537 c0=(c0+t1)&BN_MASK2; \
538 if ((c0 < t1) && (((++t2)&BN_MASK2) == 0)) c2++; \
541 #define sqr_add_c(a,i,c0,c1,c2) \
543 c0=(c0+t1)&BN_MASK2; if ((c0) < t1) t2++; \
546 #define sqr_add_c2(a,i,j,c0,c1,c2) \
547 mul_add_c2((a)[i],(a)[j],c0,c1,c2)