diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-01-18 15:16:17 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-01-18 15:16:17 +0100 |
commit | 99e5f103393d554b0d2725303682a35d343a09b6 (patch) | |
tree | 45627b7e157b6a07146fcd722a5464c7ebb29937 /test/monniaux/mod_int_mat/modint.h | |
parent | ac6e6181c48b0e21219c1ea57e30fa8d3c3f1714 (diff) | |
download | compcert-kvx-99e5f103393d554b0d2725303682a35d343a09b6.tar.gz compcert-kvx-99e5f103393d554b0d2725303682a35d343a09b6.zip |
moved to subdirectory
Diffstat (limited to 'test/monniaux/mod_int_mat/modint.h')
-rw-r--r-- | test/monniaux/mod_int_mat/modint.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/monniaux/mod_int_mat/modint.h b/test/monniaux/mod_int_mat/modint.h new file mode 100644 index 00000000..5295258b --- /dev/null +++ b/test/monniaux/mod_int_mat/modint.h @@ -0,0 +1,41 @@ +#include <stdint.h> +#include <stdbool.h> + +typedef uint32_t modint; +#define MODULUS 257 + +void modint_mat_mul1(unsigned m, unsigned n, unsigned p, + modint * restrict c, unsigned stride_c, + const modint *a, unsigned stride_a, + const modint *b, unsigned stride_b); + +void modint_mat_mul2(unsigned m, unsigned n, unsigned p, + modint * restrict c, unsigned stride_c, + const modint *a, unsigned stride_a, + const modint *b, unsigned stride_b); + +void modint_mat_mul3(unsigned m, unsigned n, unsigned p, + modint * restrict c, unsigned stride_c, + const modint *a, unsigned stride_a, + const modint *b, unsigned stride_b); + +void modint_mat_mul4(unsigned m, unsigned n, unsigned p, + modint * restrict c, unsigned stride_c, + const modint *a, unsigned stride_a, + const modint *b, unsigned stride_b); + +void modint_mat_mul5(unsigned m, unsigned n, unsigned p, + modint * restrict c, unsigned stride_c, + const modint *a, unsigned stride_a, + const modint *b, unsigned stride_b); + +modint modint_random(void); + +void modint_mat_random(unsigned m, + unsigned n, + modint *a, unsigned stride_a); + +bool modint_mat_equal(unsigned m, + unsigned n, + const modint *a, unsigned stride_a, + const modint *b, unsigned stride_b); |