Lines Matching defs:cols
53 std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols)
59 isrc = r * cols;
61 for (c = 0; c < cols; c++) {
75 swap_halfrows_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols, int dir)
88 assert(cols == mul_size_t(2, rows));
100 m = cols - 1;
115 for (offset = 0; offset < cols/2; offset += b) {
117 stride = (offset + b < cols/2) ? b : cols/2-offset;
119 hp = matrix + hn*cols/2;
124 hp = matrix + next*cols/2;
135 hp = matrix + next*cols/2;
151 squaretrans(mpd_uint_t *buf, mpd_size_t cols)
157 for (r = 0; r < cols; r++) {
159 isrc = r*cols + c;
160 idest = c*cols + r;
161 for (c = r+1; c < cols; c++) {
166 idest += cols;
247 transpose_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols)
249 mpd_size_t size = mul_size_t(rows, cols);
252 assert(ispower2(cols));
254 if (cols == rows) {
257 else if (cols == mul_size_t(2, rows)) {
258 if (!swap_halfrows_pow2(matrix, rows, cols, FORWARD_CYCLE)) {
264 else if (rows == mul_size_t(2, cols)) {
265 squaretrans_pow2(matrix, cols);
266 squaretrans_pow2(matrix+(size/2), cols);
267 if (!swap_halfrows_pow2(matrix, cols, rows, BACKWARD_CYCLE)) {