24 #ifndef M4RI_DEBUG_DUMP
25 #define M4RI_DEBUG_DUMP
27 static inline word calculate_hash(
word const* rowptr,
wi_t wide) {
29 for (
word const* ptr = rowptr; ptr < rowptr + wide; ++ptr)
34 static inline word rotate_word(
word w,
int shift) {
43 extern void m4ri_dd_int(
char const*
function,
char const* file,
int line,
int i);
44 extern void m4ri_dd_rci(
char const*
function,
char const* file,
int line,
rci_t rci);
45 extern void m4ri_dd_rci_array(
char const*
function,
char const* file,
int line,
rci_t *rciptr,
int len);
46 extern void m4ri_dd_rawrow(
char const*
function,
char const* file,
int line,
word const* rowptr,
wi_t wide);
47 extern void m4ri_dd_row(
char const*
function,
char const* file,
int line,
struct mzd_t const* M,
rci_t row);
48 extern void m4ri_dd_mzd(
char const*
function,
char const* file,
int line,
struct mzd_t const* M);
49 extern void m4ri_dd_mzp(
char const*
function,
char const* file,
int line,
struct mzp_t const* P);
51 #define __M4RI_DD_INT(i) m4ri_dd_int(__FUNCTION__, __FILE__, __LINE__, i)
52 #define __M4RI_DD_RCI(rci) m4ri_dd_rci(__FUNCTION__, __FILE__, __LINE__, rci)
53 #define __M4RI_DD_RCI_ARRAY(rciptr, len) m4ri_dd_rci_array(__FUNCTION__, __FILE__, __LINE__, rciptr, len)
54 #define __M4RI_DD_RAWROW(rowptr, wide) m4ri_dd_rawrow(__FUNCTION__, __FILE__, __LINE__, rowptr, wide)
55 #define __M4RI_DD_ROW(M, row) m4ri_dd_row(__FUNCTION__, __FILE__, __LINE__, M, row)
56 #define __M4RI_DD_MZD(M) m4ri_dd_mzd(__FUNCTION__, __FILE__, __LINE__, M)
57 #define __M4RI_DD_MZP(P) m4ri_dd_mzp(__FUNCTION__, __FILE__, __LINE__, P)
59 #else // __M4RI_DEBUG_DUMP
61 #define __M4RI_DD_INT(i)
62 #define __M4RI_DD_RCI(rci)
63 #define __M4RI_DD_RCI_ARRAY(rciptr, len)
64 #define __M4RI_DD_RAWROW(rowptr, wide)
65 #define __M4RI_DD_ROW(M, row)
66 #define __M4RI_DD_MZD(M)
67 #define __M4RI_DD_MZP(P)
69 #endif // __M4RI_DEBUG_DUMP
71 #endif // M4RI_DEBUG_DUMP
static int const m4ri_radix
The number of bits in a word.
Definition: misc.h:141
Dense matrices over GF(2).
Definition: mzd.h:86
int rci_t
Type of row and column indexes.
Definition: misc.h:72
Permutations.
Definition: mzp.h:37
uint64_t word
A word is the typical packed data structure to represent packed bits.
Definition: misc.h:87
int wi_t
Type of word indexes.
Definition: misc.h:80