From ab12a9583bdd39884fde9bc2444e6fd1bc5f518e Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 31 May 2015 11:18:16 +0800 Subject: add async copy by index; add MMatrixInt --- matrix/generic/matrix.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'matrix/generic/matrix.h') diff --git a/matrix/generic/matrix.h b/matrix/generic/matrix.h index 276ca5c..833724b 100644 --- a/matrix/generic/matrix.h +++ b/matrix/generic/matrix.h @@ -8,8 +8,12 @@ typedef struct Matrix { union { float *f; double *d; + long *i; } data; /* pointer to actual storage */ long *data_ref; } Matrix; +#define MATRIX_ROW_PTR(self, row) \ + (MATRIX_ELEM *)((char *)MATRIX_ELEM_PTR(self) + (row) * (self)->stride) + #endif -- cgit v1.2.3-70-g09d2