Lines Matching refs:c2
638 #define mul_add_c(a, b, c0, c1, c2) \ argument
647 c2++; \
650 #define mul_add_c2(a, b, c0, c1, c2) \ argument
659 c2++; \
665 c2++; \
668 #define sqr_add_c(a, i, c0, c1, c2) \ argument
677 c2++; \
680 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
686 #define mul_add_c(a, b, c0, c1, c2) \ argument
694 c2 += (c1 < hi) ? 1 : 0; \
697 #define mul_add_c2(a, b, c0, c1, c2) \ argument
705 c2 += (c1 < tt) ? 1 : 0; \
709 c2 += (c1 < hi) ? 1 : 0; \
712 #define sqr_add_c(a, i, c0, c1, c2) \ argument
720 c2 += (c1 < hi) ? 1 : 0; \
723 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
730 #define mul_add_c(a, b, c0, c1, c2) \ argument
740 c2++; \
743 #define mul_add_c2(a, b, c0, c1, c2) \ argument
755 c2++; \
761 c2++; \
764 #define sqr_add_c(a, i, c0, c1, c2) \ argument
773 c2++; \
776 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
780 BN_ULONG c1, c2, c3; in bn_mul_comba8() local
783 c2 = 0; in bn_mul_comba8()
785 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba8()
788 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba8()
789 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba8()
790 r[1] = c2; in bn_mul_comba8()
791 c2 = 0; in bn_mul_comba8()
792 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba8()
793 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba8()
794 mul_add_c(a[0], b[2], c3, c1, c2); in bn_mul_comba8()
797 mul_add_c(a[0], b[3], c1, c2, c3); in bn_mul_comba8()
798 mul_add_c(a[1], b[2], c1, c2, c3); in bn_mul_comba8()
799 mul_add_c(a[2], b[1], c1, c2, c3); in bn_mul_comba8()
800 mul_add_c(a[3], b[0], c1, c2, c3); in bn_mul_comba8()
803 mul_add_c(a[4], b[0], c2, c3, c1); in bn_mul_comba8()
804 mul_add_c(a[3], b[1], c2, c3, c1); in bn_mul_comba8()
805 mul_add_c(a[2], b[2], c2, c3, c1); in bn_mul_comba8()
806 mul_add_c(a[1], b[3], c2, c3, c1); in bn_mul_comba8()
807 mul_add_c(a[0], b[4], c2, c3, c1); in bn_mul_comba8()
808 r[4] = c2; in bn_mul_comba8()
809 c2 = 0; in bn_mul_comba8()
810 mul_add_c(a[0], b[5], c3, c1, c2); in bn_mul_comba8()
811 mul_add_c(a[1], b[4], c3, c1, c2); in bn_mul_comba8()
812 mul_add_c(a[2], b[3], c3, c1, c2); in bn_mul_comba8()
813 mul_add_c(a[3], b[2], c3, c1, c2); in bn_mul_comba8()
814 mul_add_c(a[4], b[1], c3, c1, c2); in bn_mul_comba8()
815 mul_add_c(a[5], b[0], c3, c1, c2); in bn_mul_comba8()
818 mul_add_c(a[6], b[0], c1, c2, c3); in bn_mul_comba8()
819 mul_add_c(a[5], b[1], c1, c2, c3); in bn_mul_comba8()
820 mul_add_c(a[4], b[2], c1, c2, c3); in bn_mul_comba8()
821 mul_add_c(a[3], b[3], c1, c2, c3); in bn_mul_comba8()
822 mul_add_c(a[2], b[4], c1, c2, c3); in bn_mul_comba8()
823 mul_add_c(a[1], b[5], c1, c2, c3); in bn_mul_comba8()
824 mul_add_c(a[0], b[6], c1, c2, c3); in bn_mul_comba8()
827 mul_add_c(a[0], b[7], c2, c3, c1); in bn_mul_comba8()
828 mul_add_c(a[1], b[6], c2, c3, c1); in bn_mul_comba8()
829 mul_add_c(a[2], b[5], c2, c3, c1); in bn_mul_comba8()
830 mul_add_c(a[3], b[4], c2, c3, c1); in bn_mul_comba8()
831 mul_add_c(a[4], b[3], c2, c3, c1); in bn_mul_comba8()
832 mul_add_c(a[5], b[2], c2, c3, c1); in bn_mul_comba8()
833 mul_add_c(a[6], b[1], c2, c3, c1); in bn_mul_comba8()
834 mul_add_c(a[7], b[0], c2, c3, c1); in bn_mul_comba8()
835 r[7] = c2; in bn_mul_comba8()
836 c2 = 0; in bn_mul_comba8()
837 mul_add_c(a[7], b[1], c3, c1, c2); in bn_mul_comba8()
838 mul_add_c(a[6], b[2], c3, c1, c2); in bn_mul_comba8()
839 mul_add_c(a[5], b[3], c3, c1, c2); in bn_mul_comba8()
840 mul_add_c(a[4], b[4], c3, c1, c2); in bn_mul_comba8()
841 mul_add_c(a[3], b[5], c3, c1, c2); in bn_mul_comba8()
842 mul_add_c(a[2], b[6], c3, c1, c2); in bn_mul_comba8()
843 mul_add_c(a[1], b[7], c3, c1, c2); in bn_mul_comba8()
846 mul_add_c(a[2], b[7], c1, c2, c3); in bn_mul_comba8()
847 mul_add_c(a[3], b[6], c1, c2, c3); in bn_mul_comba8()
848 mul_add_c(a[4], b[5], c1, c2, c3); in bn_mul_comba8()
849 mul_add_c(a[5], b[4], c1, c2, c3); in bn_mul_comba8()
850 mul_add_c(a[6], b[3], c1, c2, c3); in bn_mul_comba8()
851 mul_add_c(a[7], b[2], c1, c2, c3); in bn_mul_comba8()
854 mul_add_c(a[7], b[3], c2, c3, c1); in bn_mul_comba8()
855 mul_add_c(a[6], b[4], c2, c3, c1); in bn_mul_comba8()
856 mul_add_c(a[5], b[5], c2, c3, c1); in bn_mul_comba8()
857 mul_add_c(a[4], b[6], c2, c3, c1); in bn_mul_comba8()
858 mul_add_c(a[3], b[7], c2, c3, c1); in bn_mul_comba8()
859 r[10] = c2; in bn_mul_comba8()
860 c2 = 0; in bn_mul_comba8()
861 mul_add_c(a[4], b[7], c3, c1, c2); in bn_mul_comba8()
862 mul_add_c(a[5], b[6], c3, c1, c2); in bn_mul_comba8()
863 mul_add_c(a[6], b[5], c3, c1, c2); in bn_mul_comba8()
864 mul_add_c(a[7], b[4], c3, c1, c2); in bn_mul_comba8()
867 mul_add_c(a[7], b[5], c1, c2, c3); in bn_mul_comba8()
868 mul_add_c(a[6], b[6], c1, c2, c3); in bn_mul_comba8()
869 mul_add_c(a[5], b[7], c1, c2, c3); in bn_mul_comba8()
872 mul_add_c(a[6], b[7], c2, c3, c1); in bn_mul_comba8()
873 mul_add_c(a[7], b[6], c2, c3, c1); in bn_mul_comba8()
874 r[13] = c2; in bn_mul_comba8()
875 c2 = 0; in bn_mul_comba8()
876 mul_add_c(a[7], b[7], c3, c1, c2); in bn_mul_comba8()
882 BN_ULONG c1, c2, c3; in bn_mul_comba4() local
885 c2 = 0; in bn_mul_comba4()
887 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba4()
890 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba4()
891 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba4()
892 r[1] = c2; in bn_mul_comba4()
893 c2 = 0; in bn_mul_comba4()
894 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba4()
895 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba4()
896 mul_add_c(a[0], b[2], c3, c1, c2); in bn_mul_comba4()
899 mul_add_c(a[0], b[3], c1, c2, c3); in bn_mul_comba4()
900 mul_add_c(a[1], b[2], c1, c2, c3); in bn_mul_comba4()
901 mul_add_c(a[2], b[1], c1, c2, c3); in bn_mul_comba4()
902 mul_add_c(a[3], b[0], c1, c2, c3); in bn_mul_comba4()
905 mul_add_c(a[3], b[1], c2, c3, c1); in bn_mul_comba4()
906 mul_add_c(a[2], b[2], c2, c3, c1); in bn_mul_comba4()
907 mul_add_c(a[1], b[3], c2, c3, c1); in bn_mul_comba4()
908 r[4] = c2; in bn_mul_comba4()
909 c2 = 0; in bn_mul_comba4()
910 mul_add_c(a[2], b[3], c3, c1, c2); in bn_mul_comba4()
911 mul_add_c(a[3], b[2], c3, c1, c2); in bn_mul_comba4()
914 mul_add_c(a[3], b[3], c1, c2, c3); in bn_mul_comba4()
916 r[7] = c2; in bn_mul_comba4()
920 BN_ULONG c1, c2, c3; in bn_sqr_comba8() local
923 c2 = 0; in bn_sqr_comba8()
925 sqr_add_c(a, 0, c1, c2, c3); in bn_sqr_comba8()
928 sqr_add_c2(a, 1, 0, c2, c3, c1); in bn_sqr_comba8()
929 r[1] = c2; in bn_sqr_comba8()
930 c2 = 0; in bn_sqr_comba8()
931 sqr_add_c(a, 1, c3, c1, c2); in bn_sqr_comba8()
932 sqr_add_c2(a, 2, 0, c3, c1, c2); in bn_sqr_comba8()
935 sqr_add_c2(a, 3, 0, c1, c2, c3); in bn_sqr_comba8()
936 sqr_add_c2(a, 2, 1, c1, c2, c3); in bn_sqr_comba8()
939 sqr_add_c(a, 2, c2, c3, c1); in bn_sqr_comba8()
940 sqr_add_c2(a, 3, 1, c2, c3, c1); in bn_sqr_comba8()
941 sqr_add_c2(a, 4, 0, c2, c3, c1); in bn_sqr_comba8()
942 r[4] = c2; in bn_sqr_comba8()
943 c2 = 0; in bn_sqr_comba8()
944 sqr_add_c2(a, 5, 0, c3, c1, c2); in bn_sqr_comba8()
945 sqr_add_c2(a, 4, 1, c3, c1, c2); in bn_sqr_comba8()
946 sqr_add_c2(a, 3, 2, c3, c1, c2); in bn_sqr_comba8()
949 sqr_add_c(a, 3, c1, c2, c3); in bn_sqr_comba8()
950 sqr_add_c2(a, 4, 2, c1, c2, c3); in bn_sqr_comba8()
951 sqr_add_c2(a, 5, 1, c1, c2, c3); in bn_sqr_comba8()
952 sqr_add_c2(a, 6, 0, c1, c2, c3); in bn_sqr_comba8()
955 sqr_add_c2(a, 7, 0, c2, c3, c1); in bn_sqr_comba8()
956 sqr_add_c2(a, 6, 1, c2, c3, c1); in bn_sqr_comba8()
957 sqr_add_c2(a, 5, 2, c2, c3, c1); in bn_sqr_comba8()
958 sqr_add_c2(a, 4, 3, c2, c3, c1); in bn_sqr_comba8()
959 r[7] = c2; in bn_sqr_comba8()
960 c2 = 0; in bn_sqr_comba8()
961 sqr_add_c(a, 4, c3, c1, c2); in bn_sqr_comba8()
962 sqr_add_c2(a, 5, 3, c3, c1, c2); in bn_sqr_comba8()
963 sqr_add_c2(a, 6, 2, c3, c1, c2); in bn_sqr_comba8()
964 sqr_add_c2(a, 7, 1, c3, c1, c2); in bn_sqr_comba8()
967 sqr_add_c2(a, 7, 2, c1, c2, c3); in bn_sqr_comba8()
968 sqr_add_c2(a, 6, 3, c1, c2, c3); in bn_sqr_comba8()
969 sqr_add_c2(a, 5, 4, c1, c2, c3); in bn_sqr_comba8()
972 sqr_add_c(a, 5, c2, c3, c1); in bn_sqr_comba8()
973 sqr_add_c2(a, 6, 4, c2, c3, c1); in bn_sqr_comba8()
974 sqr_add_c2(a, 7, 3, c2, c3, c1); in bn_sqr_comba8()
975 r[10] = c2; in bn_sqr_comba8()
976 c2 = 0; in bn_sqr_comba8()
977 sqr_add_c2(a, 7, 4, c3, c1, c2); in bn_sqr_comba8()
978 sqr_add_c2(a, 6, 5, c3, c1, c2); in bn_sqr_comba8()
981 sqr_add_c(a, 6, c1, c2, c3); in bn_sqr_comba8()
982 sqr_add_c2(a, 7, 5, c1, c2, c3); in bn_sqr_comba8()
985 sqr_add_c2(a, 7, 6, c2, c3, c1); in bn_sqr_comba8()
986 r[13] = c2; in bn_sqr_comba8()
987 c2 = 0; in bn_sqr_comba8()
988 sqr_add_c(a, 7, c3, c1, c2); in bn_sqr_comba8()
994 BN_ULONG c1, c2, c3; in bn_sqr_comba4() local
997 c2 = 0; in bn_sqr_comba4()
999 sqr_add_c(a, 0, c1, c2, c3); in bn_sqr_comba4()
1002 sqr_add_c2(a, 1, 0, c2, c3, c1); in bn_sqr_comba4()
1003 r[1] = c2; in bn_sqr_comba4()
1004 c2 = 0; in bn_sqr_comba4()
1005 sqr_add_c(a, 1, c3, c1, c2); in bn_sqr_comba4()
1006 sqr_add_c2(a, 2, 0, c3, c1, c2); in bn_sqr_comba4()
1009 sqr_add_c2(a, 3, 0, c1, c2, c3); in bn_sqr_comba4()
1010 sqr_add_c2(a, 2, 1, c1, c2, c3); in bn_sqr_comba4()
1013 sqr_add_c(a, 2, c2, c3, c1); in bn_sqr_comba4()
1014 sqr_add_c2(a, 3, 1, c2, c3, c1); in bn_sqr_comba4()
1015 r[4] = c2; in bn_sqr_comba4()
1016 c2 = 0; in bn_sqr_comba4()
1017 sqr_add_c2(a, 3, 2, c3, c1, c2); in bn_sqr_comba4()
1020 sqr_add_c(a, 3, c1, c2, c3); in bn_sqr_comba4()
1022 r[7] = c2; in bn_sqr_comba4()