Home | History | Annotate | Download | only in bn

Lines Matching refs:c1

396 	int n=n2/2,c1,c2;
431 c1=bn_cmp_part_words(a,&(a[n]),tna,n-tna);
434 switch (c1*3+c2)
503 /* t[32] holds (a[0]-a[1])*(b[1]-b[0]), c1 is the sign
508 c1=(int)(bn_add_words(t,r,&(r[n2]),n2));
512 c1-=(int)(bn_sub_words(&(t[n2]),t,&(t[n2]),n2));
517 c1+=(int)(bn_add_words(&(t[n2]),&(t[n2]),t,n2));
523 * c1 holds the carry bits
525 c1+=(int)(bn_add_words(&(r[n]),&(r[n]),&(t[n2]),n2));
526 if (c1)
530 ln=(lo+c1)&BN_MASK2;
535 if (ln < (BN_ULONG)c1)
554 int c1,c2,neg;
568 c1=bn_cmp_part_words(a,&(a[n]),tna,n-tna);
571 switch (c1*3+c2)
679 /* t[32] holds (a[0]-a[1])*(b[1]-b[0]), c1 is the sign
684 c1=(int)(bn_add_words(t,r,&(r[n2]),n2));
688 c1-=(int)(bn_sub_words(&(t[n2]),t,&(t[n2]),n2));
693 c1+=(int)(bn_add_words(&(t[n2]),&(t[n2]),t,n2));
699 * c1 holds the carry bits
701 c1+=(int)(bn_add_words(&(r[n]),&(r[n]),&(t[n2]),n2));
702 if (c1)
706 ln=(lo+c1)&BN_MASK2;
711 if (ln < (BN_ULONG)c1)
761 int c1,c2;
772 c1=bn_cmp_words(&(a[0]),&(a[n]),n);
774 switch (c1*3+c2)
832 c1=(int)(bn_add_words(lp,&(r[0]),&(l[0]),n));
836 c1=0;
876 c1= (int)(bn_add_words(lp,&(t[n2+n]),&(l[0]),n));
881 c1=0;
883 c1+=(int)(bn_add_words(&(t[n2]),lp, &(r[0]),n));
885 c1-=(int)(bn_sub_words(&(t[n2]),&(t[n2]),&(t[0]),n));
887 c1+=(int)(bn_add_words(&(t[n2]),&(t[n2]),&(t[0]),n));
896 if (c1 != 0) /* Add starting at r[0], could be +ve or -ve */
899 if (c1 > 0)
901 lc=c1;
910 lc= -c1;