diff options
author | cloudygoose <[email protected]> | 2015-05-31 11:32:45 +0800 |
---|---|---|
committer | cloudygoose <[email protected]> | 2015-05-31 11:32:45 +0800 |
commit | 36162328956177d554891f937a13616b5476b231 (patch) | |
tree | a28c7a6f29b37ce091b03534e85d5cb28b2e0f81 /matrix/generic/matrix.h | |
parent | cfd06bb974c7088837a107d721b1311a4f160572 (diff) | |
parent | ab12a9583bdd39884fde9bc2444e6fd1bc5f518e (diff) |
...
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'matrix/generic/matrix.h')
-rw-r--r-- | matrix/generic/matrix.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |