diff --git a/include/svf.h b/include/svf.h index 8e68b96..c91e04a 100644 --- a/include/svf.h +++ b/include/svf.h @@ -117,7 +117,7 @@ svf_gen_matrix(svf s) } INNER void -svf_run_block_mat(svf_matrix *restrict mat, v4sf *restrict buf, ulong count) +svf_run_block_mat(svf_matrix *RESTRICT mat, v4sf *RESTRICT buf, ulong count) { v4sf t1, t2, t3, t4; v4sf memory = mat->memory; diff --git a/include/util.h b/include/util.h index 0224383..cb1a984 100644 --- a/include/util.h +++ b/include/util.h @@ -9,6 +9,7 @@ #define INNER static inline #define PURE __attribute__((pure)) #define CONST __attribute__((const)) +#define RESTRICT __restrict__ typedef double v2df __attribute__((vector_size(16), aligned(16))); typedef float v2sf __attribute__((vector_size(8), aligned(8)));