From 6fc8e6798d5b4b61f04bc22711f14d1408f1abf3 Mon Sep 17 00:00:00 2001 From: Charles Bouillaguet Date: Sun, 5 Sep 2021 16:30:34 +0200 Subject: [PATCH] fix reinstated functions --- src/m4ri_functions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4rie/m4ri_functions.h b/m4rie/m4ri_functions.h index 7e399db..dd6d056 100644 --- a/m4rie/m4ri_functions.h +++ b/m4rie/m4ri_functions.h @@ -41,7 +41,7 @@ static inline word __mzd_read_bits(const mzd_t *M, const rci_t x, const rci_t y, int const spot = y % m4ri_radix; wi_t const block = y / m4ri_radix; int const spill = spot + n - m4ri_radix; - word temp = M->rows[x][block] << -spill; + word temp = mzd_row(M, x)[block] << -spill; return temp >> (m4ri_radix - n); } @@ -52,7 +52,7 @@ static inline word __mzd_read_bits(const mzd_t *M, const rci_t x, const rci_t y, static inline void __mzd_xor_bits(const mzd_t *M, const rci_t x, const rci_t y, const rci_t n, word values) { int const spot = y % m4ri_radix; wi_t const block = y / m4ri_radix; - M->rows[x][block] ^= values << spot; + mzd_row(M, x)[block] ^= values << spot; } /** @@ -63,7 +63,7 @@ static inline void __mzd_clear_bits(const mzd_t *M, const rci_t x, const rci_t y word values = m4ri_ffff >> (m4ri_radix - n); int const spot = y % m4ri_radix; wi_t const block = y / m4ri_radix; - M->rows[x][block] &= ~(values << spot); + mzd_row(M, x)[block] &= ~(values << spot); } /** -- 2.46.2