Lines Matching full:c1

130   BN_ULONG c1 = 0;  in bn_mul_add_words()  local
133 return c1; in bn_mul_add_words()
137 mul_add(rp[0], ap[0], w, c1); in bn_mul_add_words()
138 mul_add(rp[1], ap[1], w, c1); in bn_mul_add_words()
139 mul_add(rp[2], ap[2], w, c1); in bn_mul_add_words()
140 mul_add(rp[3], ap[3], w, c1); in bn_mul_add_words()
147 mul_add(rp[0], ap[0], w, c1); in bn_mul_add_words()
153 return c1; in bn_mul_add_words()
158 BN_ULONG c1 = 0; in bn_mul_words() local
161 return c1; in bn_mul_words()
165 mul(rp[0], ap[0], w, c1); in bn_mul_words()
166 mul(rp[1], ap[1], w, c1); in bn_mul_words()
167 mul(rp[2], ap[2], w, c1); in bn_mul_words()
168 mul(rp[3], ap[3], w, c1); in bn_mul_words()
174 mul(rp[0], ap[0], w, c1); in bn_mul_words()
179 return c1; in bn_mul_words()
355 // mul_add_c(a,b,c0,c1,c2) -- c+=a*b for three word number c=(c2,c1,c0)
356 // mul_add_c2(a,b,c0,c1,c2) -- c+=2*a*b for three word number c=(c2,c1,c0)
357 // sqr_add_c(a,i,c0,c1,c2) -- c+=a[i]^2 for three word number c=(c2,c1,c0)
358 // sqr_add_c2(a,i,c0,c1,c2) -- c+=2*a[i]*a[j] for three word number c=(c2,c1,c0)
364 #define mul_add_c(a, b, c0, c1, c2) \ argument
371 (c1) += (hi); \
372 if ((c1) < hi) { \
377 #define mul_add_c2(a, b, c0, c1, c2) \ argument
384 (c1) += hi; \
385 if ((c1) < hi) { \
391 (c1) += hi; \
392 if ((c1) < hi) { \
397 #define sqr_add_c(a, i, c0, c1, c2) \ argument
404 (c1) += hi; \
405 if ((c1) < hi) { \
410 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
416 #define mul_add_c(a, b, c0, c1, c2) \ argument
423 (c1) += hi; \
424 (c2) += ((c1) < hi) ? 1 : 0; \
427 #define mul_add_c2(a, b, c0, c1, c2) \ argument
434 (c1) += tt; \
435 (c2) += ((c1) < tt) ? 1 : 0; \
438 (c1) += hi; \
439 (c2) += ((c1) < hi) ? 1 : 0; \
442 #define sqr_add_c(a, i, c0, c1, c2) \ argument
449 (c1) += hi; \
450 (c2) += ((c1) < hi) ? 1 : 0; \
453 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
458 BN_ULONG c1, c2, c3; in bn_mul_comba8() local
460 c1 = 0; in bn_mul_comba8()
463 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba8()
464 r[0] = c1; in bn_mul_comba8()
465 c1 = 0; in bn_mul_comba8()
466 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba8()
467 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba8()
470 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba8()
471 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba8()
472 mul_add_c(a[0], b[2], c3, c1, c2); in bn_mul_comba8()
475 mul_add_c(a[0], b[3], c1, c2, c3); in bn_mul_comba8()
476 mul_add_c(a[1], b[2], c1, c2, c3); in bn_mul_comba8()
477 mul_add_c(a[2], b[1], c1, c2, c3); in bn_mul_comba8()
478 mul_add_c(a[3], b[0], c1, c2, c3); in bn_mul_comba8()
479 r[3] = c1; in bn_mul_comba8()
480 c1 = 0; in bn_mul_comba8()
481 mul_add_c(a[4], b[0], c2, c3, c1); in bn_mul_comba8()
482 mul_add_c(a[3], b[1], c2, c3, c1); in bn_mul_comba8()
483 mul_add_c(a[2], b[2], c2, c3, c1); in bn_mul_comba8()
484 mul_add_c(a[1], b[3], c2, c3, c1); in bn_mul_comba8()
485 mul_add_c(a[0], b[4], c2, c3, c1); in bn_mul_comba8()
488 mul_add_c(a[0], b[5], c3, c1, c2); in bn_mul_comba8()
489 mul_add_c(a[1], b[4], c3, c1, c2); in bn_mul_comba8()
490 mul_add_c(a[2], b[3], c3, c1, c2); in bn_mul_comba8()
491 mul_add_c(a[3], b[2], c3, c1, c2); in bn_mul_comba8()
492 mul_add_c(a[4], b[1], c3, c1, c2); in bn_mul_comba8()
493 mul_add_c(a[5], b[0], c3, c1, c2); in bn_mul_comba8()
496 mul_add_c(a[6], b[0], c1, c2, c3); in bn_mul_comba8()
497 mul_add_c(a[5], b[1], c1, c2, c3); in bn_mul_comba8()
498 mul_add_c(a[4], b[2], c1, c2, c3); in bn_mul_comba8()
499 mul_add_c(a[3], b[3], c1, c2, c3); in bn_mul_comba8()
500 mul_add_c(a[2], b[4], c1, c2, c3); in bn_mul_comba8()
501 mul_add_c(a[1], b[5], c1, c2, c3); in bn_mul_comba8()
502 mul_add_c(a[0], b[6], c1, c2, c3); in bn_mul_comba8()
503 r[6] = c1; in bn_mul_comba8()
504 c1 = 0; in bn_mul_comba8()
505 mul_add_c(a[0], b[7], c2, c3, c1); in bn_mul_comba8()
506 mul_add_c(a[1], b[6], c2, c3, c1); in bn_mul_comba8()
507 mul_add_c(a[2], b[5], c2, c3, c1); in bn_mul_comba8()
508 mul_add_c(a[3], b[4], c2, c3, c1); in bn_mul_comba8()
509 mul_add_c(a[4], b[3], c2, c3, c1); in bn_mul_comba8()
510 mul_add_c(a[5], b[2], c2, c3, c1); in bn_mul_comba8()
511 mul_add_c(a[6], b[1], c2, c3, c1); in bn_mul_comba8()
512 mul_add_c(a[7], b[0], c2, c3, c1); in bn_mul_comba8()
515 mul_add_c(a[7], b[1], c3, c1, c2); in bn_mul_comba8()
516 mul_add_c(a[6], b[2], c3, c1, c2); in bn_mul_comba8()
517 mul_add_c(a[5], b[3], c3, c1, c2); in bn_mul_comba8()
518 mul_add_c(a[4], b[4], c3, c1, c2); in bn_mul_comba8()
519 mul_add_c(a[3], b[5], c3, c1, c2); in bn_mul_comba8()
520 mul_add_c(a[2], b[6], c3, c1, c2); in bn_mul_comba8()
521 mul_add_c(a[1], b[7], c3, c1, c2); in bn_mul_comba8()
524 mul_add_c(a[2], b[7], c1, c2, c3); in bn_mul_comba8()
525 mul_add_c(a[3], b[6], c1, c2, c3); in bn_mul_comba8()
526 mul_add_c(a[4], b[5], c1, c2, c3); in bn_mul_comba8()
527 mul_add_c(a[5], b[4], c1, c2, c3); in bn_mul_comba8()
528 mul_add_c(a[6], b[3], c1, c2, c3); in bn_mul_comba8()
529 mul_add_c(a[7], b[2], c1, c2, c3); in bn_mul_comba8()
530 r[9] = c1; in bn_mul_comba8()
531 c1 = 0; in bn_mul_comba8()
532 mul_add_c(a[7], b[3], c2, c3, c1); in bn_mul_comba8()
533 mul_add_c(a[6], b[4], c2, c3, c1); in bn_mul_comba8()
534 mul_add_c(a[5], b[5], c2, c3, c1); in bn_mul_comba8()
535 mul_add_c(a[4], b[6], c2, c3, c1); in bn_mul_comba8()
536 mul_add_c(a[3], b[7], c2, c3, c1); in bn_mul_comba8()
539 mul_add_c(a[4], b[7], c3, c1, c2); in bn_mul_comba8()
540 mul_add_c(a[5], b[6], c3, c1, c2); in bn_mul_comba8()
541 mul_add_c(a[6], b[5], c3, c1, c2); in bn_mul_comba8()
542 mul_add_c(a[7], b[4], c3, c1, c2); in bn_mul_comba8()
545 mul_add_c(a[7], b[5], c1, c2, c3); in bn_mul_comba8()
546 mul_add_c(a[6], b[6], c1, c2, c3); in bn_mul_comba8()
547 mul_add_c(a[5], b[7], c1, c2, c3); in bn_mul_comba8()
548 r[12] = c1; in bn_mul_comba8()
549 c1 = 0; in bn_mul_comba8()
550 mul_add_c(a[6], b[7], c2, c3, c1); in bn_mul_comba8()
551 mul_add_c(a[7], b[6], c2, c3, c1); in bn_mul_comba8()
554 mul_add_c(a[7], b[7], c3, c1, c2); in bn_mul_comba8()
556 r[15] = c1; in bn_mul_comba8()
560 BN_ULONG c1, c2, c3; in bn_mul_comba4() local
562 c1 = 0; in bn_mul_comba4()
565 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba4()
566 r[0] = c1; in bn_mul_comba4()
567 c1 = 0; in bn_mul_comba4()
568 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba4()
569 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba4()
572 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba4()
573 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba4()
574 mul_add_c(a[0], b[2], c3, c1, c2); in bn_mul_comba4()
577 mul_add_c(a[0], b[3], c1, c2, c3); in bn_mul_comba4()
578 mul_add_c(a[1], b[2], c1, c2, c3); in bn_mul_comba4()
579 mul_add_c(a[2], b[1], c1, c2, c3); in bn_mul_comba4()
580 mul_add_c(a[3], b[0], c1, c2, c3); in bn_mul_comba4()
581 r[3] = c1; in bn_mul_comba4()
582 c1 = 0; in bn_mul_comba4()
583 mul_add_c(a[3], b[1], c2, c3, c1); in bn_mul_comba4()
584 mul_add_c(a[2], b[2], c2, c3, c1); in bn_mul_comba4()
585 mul_add_c(a[1], b[3], c2, c3, c1); in bn_mul_comba4()
588 mul_add_c(a[2], b[3], c3, c1, c2); in bn_mul_comba4()
589 mul_add_c(a[3], b[2], c3, c1, c2); in bn_mul_comba4()
592 mul_add_c(a[3], b[3], c1, c2, c3); in bn_mul_comba4()
593 r[6] = c1; in bn_mul_comba4()
598 BN_ULONG c1, c2, c3; in bn_sqr_comba8() local
600 c1 = 0; in bn_sqr_comba8()
603 sqr_add_c(a, 0, c1, c2, c3); in bn_sqr_comba8()
604 r[0] = c1; in bn_sqr_comba8()
605 c1 = 0; in bn_sqr_comba8()
606 sqr_add_c2(a, 1, 0, c2, c3, c1); in bn_sqr_comba8()
609 sqr_add_c(a, 1, c3, c1, c2); in bn_sqr_comba8()
610 sqr_add_c2(a, 2, 0, c3, c1, c2); in bn_sqr_comba8()
613 sqr_add_c2(a, 3, 0, c1, c2, c3); in bn_sqr_comba8()
614 sqr_add_c2(a, 2, 1, c1, c2, c3); in bn_sqr_comba8()
615 r[3] = c1; in bn_sqr_comba8()
616 c1 = 0; in bn_sqr_comba8()
617 sqr_add_c(a, 2, c2, c3, c1); in bn_sqr_comba8()
618 sqr_add_c2(a, 3, 1, c2, c3, c1); in bn_sqr_comba8()
619 sqr_add_c2(a, 4, 0, c2, c3, c1); in bn_sqr_comba8()
622 sqr_add_c2(a, 5, 0, c3, c1, c2); in bn_sqr_comba8()
623 sqr_add_c2(a, 4, 1, c3, c1, c2); in bn_sqr_comba8()
624 sqr_add_c2(a, 3, 2, c3, c1, c2); in bn_sqr_comba8()
627 sqr_add_c(a, 3, c1, c2, c3); in bn_sqr_comba8()
628 sqr_add_c2(a, 4, 2, c1, c2, c3); in bn_sqr_comba8()
629 sqr_add_c2(a, 5, 1, c1, c2, c3); in bn_sqr_comba8()
630 sqr_add_c2(a, 6, 0, c1, c2, c3); in bn_sqr_comba8()
631 r[6] = c1; in bn_sqr_comba8()
632 c1 = 0; in bn_sqr_comba8()
633 sqr_add_c2(a, 7, 0, c2, c3, c1); in bn_sqr_comba8()
634 sqr_add_c2(a, 6, 1, c2, c3, c1); in bn_sqr_comba8()
635 sqr_add_c2(a, 5, 2, c2, c3, c1); in bn_sqr_comba8()
636 sqr_add_c2(a, 4, 3, c2, c3, c1); in bn_sqr_comba8()
639 sqr_add_c(a, 4, c3, c1, c2); in bn_sqr_comba8()
640 sqr_add_c2(a, 5, 3, c3, c1, c2); in bn_sqr_comba8()
641 sqr_add_c2(a, 6, 2, c3, c1, c2); in bn_sqr_comba8()
642 sqr_add_c2(a, 7, 1, c3, c1, c2); in bn_sqr_comba8()
645 sqr_add_c2(a, 7, 2, c1, c2, c3); in bn_sqr_comba8()
646 sqr_add_c2(a, 6, 3, c1, c2, c3); in bn_sqr_comba8()
647 sqr_add_c2(a, 5, 4, c1, c2, c3); in bn_sqr_comba8()
648 r[9] = c1; in bn_sqr_comba8()
649 c1 = 0; in bn_sqr_comba8()
650 sqr_add_c(a, 5, c2, c3, c1); in bn_sqr_comba8()
651 sqr_add_c2(a, 6, 4, c2, c3, c1); in bn_sqr_comba8()
652 sqr_add_c2(a, 7, 3, c2, c3, c1); in bn_sqr_comba8()
655 sqr_add_c2(a, 7, 4, c3, c1, c2); in bn_sqr_comba8()
656 sqr_add_c2(a, 6, 5, c3, c1, c2); in bn_sqr_comba8()
659 sqr_add_c(a, 6, c1, c2, c3); in bn_sqr_comba8()
660 sqr_add_c2(a, 7, 5, c1, c2, c3); in bn_sqr_comba8()
661 r[12] = c1; in bn_sqr_comba8()
662 c1 = 0; in bn_sqr_comba8()
663 sqr_add_c2(a, 7, 6, c2, c3, c1); in bn_sqr_comba8()
666 sqr_add_c(a, 7, c3, c1, c2); in bn_sqr_comba8()
668 r[15] = c1; in bn_sqr_comba8()
672 BN_ULONG c1, c2, c3; in bn_sqr_comba4() local
674 c1 = 0; in bn_sqr_comba4()
677 sqr_add_c(a, 0, c1, c2, c3); in bn_sqr_comba4()
678 r[0] = c1; in bn_sqr_comba4()
679 c1 = 0; in bn_sqr_comba4()
680 sqr_add_c2(a, 1, 0, c2, c3, c1); in bn_sqr_comba4()
683 sqr_add_c(a, 1, c3, c1, c2); in bn_sqr_comba4()
684 sqr_add_c2(a, 2, 0, c3, c1, c2); in bn_sqr_comba4()
687 sqr_add_c2(a, 3, 0, c1, c2, c3); in bn_sqr_comba4()
688 sqr_add_c2(a, 2, 1, c1, c2, c3); in bn_sqr_comba4()
689 r[3] = c1; in bn_sqr_comba4()
690 c1 = 0; in bn_sqr_comba4()
691 sqr_add_c(a, 2, c2, c3, c1); in bn_sqr_comba4()
692 sqr_add_c2(a, 3, 1, c2, c3, c1); in bn_sqr_comba4()
695 sqr_add_c2(a, 3, 2, c3, c1, c2); in bn_sqr_comba4()
698 sqr_add_c(a, 3, c1, c2, c3); in bn_sqr_comba4()
699 r[6] = c1; in bn_sqr_comba4()