2
* Copyright (c) 2003, 2006 Matteo Frigo
3
* Copyright (c) 2003, 2006 Massachusetts Institute of Technology
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
/* out of place 1D copy routine */
24
void X(cpy1d)(R *I, R *O, INT n0, INT is0, INT os0, INT vl)
31
if ((n0 & 1) || is0 != 1 || os0 != 1) {
32
for (; n0 > 0; --n0, I += is0, O += os0)
36
n0 /= 2; is0 = 2; os0 = 2;
39
if ((n0 & 1) || is0 != 2 || os0 != 2) {
40
for (; n0 > 0; --n0, I += is0, O += os0) {
48
n0 /= 2; is0 = 4; os0 = 4;
51
for (; n0 > 0; --n0, I += is0, O += os0) {
63
for (i0 = 0; i0 < n0; ++i0)
64
for (v = 0; v < vl; ++v) {
65
R x0 = I[i0 * is0 + v];