@@ -30,37 +30,6 @@ void multiply_bins_stack_asm(uint64_t *out, uint64_t *bins, const int cols);
30
30
void multiply_bins_asm (uint64_t * out , uint64_t * bins , const int cols );
31
31
void calculate_SPS_m4f_asm (uint64_t * acc , const uint64_t * PS , const unsigned char * S );
32
32
33
- // multiplies m (possibly upper triangular) matrices with a single matrix and adds result to acc
34
- static inline
35
- void mul_add_m_upper_triangular_mat_x_mat (const int m_vec_limbs , const uint64_t * bs_mat , const unsigned char * mat , uint64_t * acc ,
36
- const int bs_mat_rows , const int bs_mat_cols , const int mat_cols , const int triangular ) {
37
-
38
- int bs_mat_entries_used = 0 ;
39
- for (int r = 0 ; r < bs_mat_rows ; r ++ ) {
40
- for (int c = triangular * r ; c < bs_mat_cols ; c ++ ) {
41
- for (int k = 0 ; k < mat_cols ; k += 1 ) {
42
- m_vec_mul_add (m_vec_limbs , bs_mat + m_vec_limbs * bs_mat_entries_used , mat [c * mat_cols + k ], acc + m_vec_limbs * (r * mat_cols + k ));
43
- }
44
- bs_mat_entries_used += 1 ;
45
- }
46
- }
47
- }
48
-
49
- // multiplies m (possibly upper triangular) matrices with the transpose of a single matrix and adds result to acc
50
- static inline
51
- void mul_add_m_upper_triangular_mat_x_mat_trans (const int m_vec_limbs , const uint64_t * bs_mat , const unsigned char * mat , uint64_t * acc ,
52
- const int bs_mat_rows , const int bs_mat_cols , const int mat_rows , const int triangular ) {
53
- int bs_mat_entries_used = 0 ;
54
- for (int r = 0 ; r < bs_mat_rows ; r ++ ) {
55
- for (int c = triangular * r ; c < bs_mat_cols ; c ++ ) {
56
- for (int k = 0 ; k < mat_rows ; k += 1 ) {
57
- m_vec_mul_add (m_vec_limbs , bs_mat + m_vec_limbs * bs_mat_entries_used , mat [k * bs_mat_cols + c ], acc + m_vec_limbs * (r * mat_rows + k ));
58
- }
59
- bs_mat_entries_used += 1 ;
60
- }
61
- }
62
- }
63
-
64
33
// multiplies the transpose of a single matrix with m matrices and adds result to acc
65
34
static inline
66
35
void mul_add_mat_trans_x_m_mat (const int m_vec_limbs , const unsigned char * mat , const uint64_t * bs_mat , uint64_t * acc ,
0 commit comments