1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
/*
* Copyright (c) 2003 Matteo Frigo
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/* This file was automatically generated --- DO NOT EDIT */
/* Generated on Sat Jul 5 21:29:32 EDT 2003 */
#include "codelet-dft.h"
/* Generated by: /homee/stevenj/cvs/fftw3.0.1/genfft/gen_notw -compact -variables 4 -n 10 -name n1_10 -include n.h */
/*
* This function contains 84 FP additions, 24 FP multiplications,
* (or, 72 additions, 12 multiplications, 12 fused multiply/add),
* 41 stack variables, and 40 memory accesses
*/
/*
* Generator Id's :
* $Id: n1_10.c,v 1.1 2008/10/17 06:11:09 scuri Exp $
* $Id: n1_10.c,v 1.1 2008/10/17 06:11:09 scuri Exp $
* $Id: n1_10.c,v 1.1 2008/10/17 06:11:09 scuri Exp $
*/
#include "n.h"
static void n1_10(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, int v, int ivs, int ovs)
{
DK(KP250000000, +0.250000000000000000000000000000000000000000000);
DK(KP559016994, +0.559016994374947424102293417182819058860154590);
DK(KP587785252, +0.587785252292473129168705954639072768597652438);
DK(KP951056516, +0.951056516295153572116439333379382143405698634);
int i;
for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, ro = ro + ovs, io = io + ovs) {
E T3, Tj, TQ, T1e, TU, TV, T1c, T1b, Tm, Tp, Tq, Ta, Th, Ti, TA;
E TH, T17, T14, T1f, T1g, T1h, TL, TM, TR;
{
E T1, T2, TO, TP;
T1 = ri[0];
T2 = ri[WS(is, 5)];
T3 = T1 - T2;
Tj = T1 + T2;
TO = ii[0];
TP = ii[WS(is, 5)];
TQ = TO - TP;
T1e = TO + TP;
}
{
E T6, Tk, Tg, To, T9, Tl, Td, Tn;
{
E T4, T5, Te, Tf;
T4 = ri[WS(is, 2)];
T5 = ri[WS(is, 7)];
T6 = T4 - T5;
Tk = T4 + T5;
Te = ri[WS(is, 6)];
Tf = ri[WS(is, 1)];
Tg = Te - Tf;
To = Te + Tf;
}
{
E T7, T8, Tb, Tc;
T7 = ri[WS(is, 8)];
T8 = ri[WS(is, 3)];
T9 = T7 - T8;
Tl = T7 + T8;
Tb = ri[WS(is, 4)];
Tc = ri[WS(is, 9)];
Td = Tb - Tc;
Tn = Tb + Tc;
}
TU = T6 - T9;
TV = Td - Tg;
T1c = Tk - Tl;
T1b = Tn - To;
Tm = Tk + Tl;
Tp = Tn + To;
Tq = Tm + Tp;
Ta = T6 + T9;
Th = Td + Tg;
Ti = Ta + Th;
}
{
E Tw, T15, TG, T13, Tz, T16, TD, T12;
{
E Tu, Tv, TE, TF;
Tu = ii[WS(is, 2)];
Tv = ii[WS(is, 7)];
Tw = Tu - Tv;
T15 = Tu + Tv;
TE = ii[WS(is, 6)];
TF = ii[WS(is, 1)];
TG = TE - TF;
T13 = TE + TF;
}
{
E Tx, Ty, TB, TC;
Tx = ii[WS(is, 8)];
Ty = ii[WS(is, 3)];
Tz = Tx - Ty;
T16 = Tx + Ty;
TB = ii[WS(is, 4)];
TC = ii[WS(is, 9)];
TD = TB - TC;
T12 = TB + TC;
}
TA = Tw - Tz;
TH = TD - TG;
T17 = T15 - T16;
T14 = T12 - T13;
T1f = T15 + T16;
T1g = T12 + T13;
T1h = T1f + T1g;
TL = Tw + Tz;
TM = TD + TG;
TR = TL + TM;
}
ro[WS(os, 5)] = T3 + Ti;
io[WS(os, 5)] = TQ + TR;
ro[0] = Tj + Tq;
io[0] = T1e + T1h;
{
E TI, TK, Tt, TJ, Tr, Ts;
TI = FMA(KP951056516, TA, KP587785252 * TH);
TK = FNMS(KP587785252, TA, KP951056516 * TH);
Tr = KP559016994 * (Ta - Th);
Ts = FNMS(KP250000000, Ti, T3);
Tt = Tr + Ts;
TJ = Ts - Tr;
ro[WS(os, 9)] = Tt - TI;
ro[WS(os, 3)] = TJ + TK;
ro[WS(os, 1)] = Tt + TI;
ro[WS(os, 7)] = TJ - TK;
}
{
E TW, TY, TT, TX, TN, TS;
TW = FMA(KP951056516, TU, KP587785252 * TV);
TY = FNMS(KP587785252, TU, KP951056516 * TV);
TN = KP559016994 * (TL - TM);
TS = FNMS(KP250000000, TR, TQ);
TT = TN + TS;
TX = TS - TN;
io[WS(os, 1)] = TT - TW;
io[WS(os, 7)] = TY + TX;
io[WS(os, 9)] = TW + TT;
io[WS(os, 3)] = TX - TY;
}
{
E T18, T1a, T11, T19, TZ, T10;
T18 = FNMS(KP587785252, T17, KP951056516 * T14);
T1a = FMA(KP951056516, T17, KP587785252 * T14);
TZ = FNMS(KP250000000, Tq, Tj);
T10 = KP559016994 * (Tm - Tp);
T11 = TZ - T10;
T19 = T10 + TZ;
ro[WS(os, 2)] = T11 - T18;
ro[WS(os, 6)] = T19 + T1a;
ro[WS(os, 8)] = T11 + T18;
ro[WS(os, 4)] = T19 - T1a;
}
{
E T1d, T1l, T1k, T1m, T1i, T1j;
T1d = FNMS(KP587785252, T1c, KP951056516 * T1b);
T1l = FMA(KP951056516, T1c, KP587785252 * T1b);
T1i = FNMS(KP250000000, T1h, T1e);
T1j = KP559016994 * (T1f - T1g);
T1k = T1i - T1j;
T1m = T1j + T1i;
io[WS(os, 2)] = T1d + T1k;
io[WS(os, 6)] = T1m - T1l;
io[WS(os, 8)] = T1k - T1d;
io[WS(os, 4)] = T1l + T1m;
}
}
}
static const kdft_desc desc = { 10, "n1_10", {72, 12, 12, 0}, &GENUS, 0, 0, 0, 0 };
void X(codelet_n1_10) (planner *p) {
X(kdft_register) (p, n1_10, &desc);
}
|