Lines Matching refs:m
28 static inline size_t matrix_location_to_index(size_t x, size_t y, size_t m) in matrix_location_to_index() argument
34 return (y + 1) * (m + m - y) / 2 - (m - x); in matrix_location_to_index()
37 static bool triangular_matrix_get_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_get_entry() argument
40 __ASSERT(x >= y, "x: %d, y: %d, m: %d", x, y, m); in triangular_matrix_get_entry()
44 ret = sys_bitarray_test_bit(m2tbm, matrix_location_to_index(x, y, m), &bit); in triangular_matrix_get_entry()
50 static void triangular_matrix_set_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_set_entry() argument
53 __ASSERT(x >= y, "x: %d, y: %d, m: %d", x, y, m); in triangular_matrix_set_entry()
56 ret = sys_bitarray_set_bit(m2tbm, matrix_location_to_index(x, y, m)); in triangular_matrix_set_entry()
60 static void triangular_matrix_clear_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_clear_entry() argument
63 __ASSERT(x >= y, "x: %d, y: %d, m: %d", x, y, m); in triangular_matrix_clear_entry()
67 ret = sys_bitarray_clear_bit(m2tbm, matrix_location_to_index(x, y, m)); in triangular_matrix_clear_entry()
144 static void frag_dec_parity_matrix_vector(size_t m, size_t n, struct sys_bitarray *vec) in frag_dec_parity_matrix_vector() argument
150 ret = sys_bitarray_clear_region(vec, m, 0); in frag_dec_parity_matrix_vector()
157 if (is_power_of_two(m)) { in frag_dec_parity_matrix_vector()
158 mm = m + 1; in frag_dec_parity_matrix_vector()
160 mm = m; in frag_dec_parity_matrix_vector()
165 for (size_t nb_coeff = 0; nb_coeff < (m / 2); nb_coeff++) { in frag_dec_parity_matrix_vector()
167 while (r >= m) { in frag_dec_parity_matrix_vector()