Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
3
 *
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 2 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program; if not, write to the Free Software
16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
 *
18
 */
19
 
20
/*
21
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
22
 *
23
 * This program is free software; you can redistribute it and/or modify
24
 * it under the terms of the GNU General Public License as published by
25
 * the Free Software Foundation; either version 2 of the License, or
26
 * (at your option) any later version.
27
 *
28
 * This program is distributed in the hope that it will be useful,
29
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31
 * GNU General Public License for more details.
32
 *
33
 * You should have received a copy of the GNU General Public License
34
 * along with this program; if not, write to the Free Software
35
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
36
 *
37
 */
38
 
39
/* rconfig.c -- this file contains all the real-complex codelets
40
 * the system knows about */
41
 
107 pj 42
#include <fftw-int.h>
43
#include <rfftw.h>
2 pj 44
 
45
#define NOTW_CODELET(x) \
46
         &fftw_real2hc_##x##_desc
47
#define NOTWI_CODELET(x) \
48
         &fftw_hc2real_##x##_desc
49
 
50
#define TWIDDLE_CODELET(x) \
51
         &fftw_hc2hc_forward_##x##_desc
52
#define TWIDDLEI_CODELET(x) \
53
         &fftw_hc2hc_backward_##x##_desc
54
 
55
/* automatically-generated list of codelets */
56
 
57
extern fftw_codelet_desc fftw_real2hc_1_desc;
58
extern fftw_codelet_desc fftw_hc2real_1_desc;
59
extern fftw_codelet_desc fftw_real2hc_2_desc;
60
extern fftw_codelet_desc fftw_hc2real_2_desc;
61
extern fftw_codelet_desc fftw_real2hc_3_desc;
62
extern fftw_codelet_desc fftw_hc2real_3_desc;
63
extern fftw_codelet_desc fftw_real2hc_4_desc;
64
extern fftw_codelet_desc fftw_hc2real_4_desc;
65
extern fftw_codelet_desc fftw_real2hc_5_desc;
66
extern fftw_codelet_desc fftw_hc2real_5_desc;
67
extern fftw_codelet_desc fftw_real2hc_6_desc;
68
extern fftw_codelet_desc fftw_hc2real_6_desc;
69
extern fftw_codelet_desc fftw_real2hc_7_desc;
70
extern fftw_codelet_desc fftw_hc2real_7_desc;
71
extern fftw_codelet_desc fftw_real2hc_8_desc;
72
extern fftw_codelet_desc fftw_hc2real_8_desc;
73
extern fftw_codelet_desc fftw_real2hc_9_desc;
74
extern fftw_codelet_desc fftw_hc2real_9_desc;
75
extern fftw_codelet_desc fftw_real2hc_10_desc;
76
extern fftw_codelet_desc fftw_hc2real_10_desc;
77
extern fftw_codelet_desc fftw_real2hc_11_desc;
78
extern fftw_codelet_desc fftw_hc2real_11_desc;
79
extern fftw_codelet_desc fftw_real2hc_12_desc;
80
extern fftw_codelet_desc fftw_hc2real_12_desc;
81
extern fftw_codelet_desc fftw_real2hc_13_desc;
82
extern fftw_codelet_desc fftw_hc2real_13_desc;
83
extern fftw_codelet_desc fftw_real2hc_14_desc;
84
extern fftw_codelet_desc fftw_hc2real_14_desc;
85
extern fftw_codelet_desc fftw_real2hc_15_desc;
86
extern fftw_codelet_desc fftw_hc2real_15_desc;
87
extern fftw_codelet_desc fftw_real2hc_16_desc;
88
extern fftw_codelet_desc fftw_hc2real_16_desc;
89
extern fftw_codelet_desc fftw_real2hc_32_desc;
90
extern fftw_codelet_desc fftw_hc2real_32_desc;
91
extern fftw_codelet_desc fftw_real2hc_64_desc;
92
extern fftw_codelet_desc fftw_hc2real_64_desc;
93
extern fftw_codelet_desc fftw_real2hc_128_desc;
94
extern fftw_codelet_desc fftw_hc2real_128_desc;
95
extern fftw_codelet_desc fftw_hc2hc_forward_2_desc;
96
extern fftw_codelet_desc fftw_hc2hc_backward_2_desc;
97
extern fftw_codelet_desc fftw_hc2hc_forward_3_desc;
98
extern fftw_codelet_desc fftw_hc2hc_backward_3_desc;
99
extern fftw_codelet_desc fftw_hc2hc_forward_4_desc;
100
extern fftw_codelet_desc fftw_hc2hc_backward_4_desc;
101
extern fftw_codelet_desc fftw_hc2hc_forward_5_desc;
102
extern fftw_codelet_desc fftw_hc2hc_backward_5_desc;
103
extern fftw_codelet_desc fftw_hc2hc_forward_6_desc;
104
extern fftw_codelet_desc fftw_hc2hc_backward_6_desc;
105
extern fftw_codelet_desc fftw_hc2hc_forward_7_desc;
106
extern fftw_codelet_desc fftw_hc2hc_backward_7_desc;
107
extern fftw_codelet_desc fftw_hc2hc_forward_8_desc;
108
extern fftw_codelet_desc fftw_hc2hc_backward_8_desc;
109
extern fftw_codelet_desc fftw_hc2hc_forward_9_desc;
110
extern fftw_codelet_desc fftw_hc2hc_backward_9_desc;
111
extern fftw_codelet_desc fftw_hc2hc_forward_10_desc;
112
extern fftw_codelet_desc fftw_hc2hc_backward_10_desc;
113
extern fftw_codelet_desc fftw_hc2hc_forward_16_desc;
114
extern fftw_codelet_desc fftw_hc2hc_backward_16_desc;
115
extern fftw_codelet_desc fftw_hc2hc_forward_32_desc;
116
extern fftw_codelet_desc fftw_hc2hc_backward_32_desc;
117
 
118
fftw_codelet_desc *rfftw_config[] =
119
{
120
     NOTW_CODELET(1),
121
     NOTWI_CODELET(1),
122
     NOTW_CODELET(2),
123
     NOTWI_CODELET(2),
124
     NOTW_CODELET(3),
125
     NOTWI_CODELET(3),
126
     NOTW_CODELET(4),
127
     NOTWI_CODELET(4),
128
     NOTW_CODELET(5),
129
     NOTWI_CODELET(5),
130
     NOTW_CODELET(6),
131
     NOTWI_CODELET(6),
132
     NOTW_CODELET(7),
133
     NOTWI_CODELET(7),
134
     NOTW_CODELET(8),
135
     NOTWI_CODELET(8),
136
     NOTW_CODELET(9),
137
     NOTWI_CODELET(9),
138
     NOTW_CODELET(10),
139
     NOTWI_CODELET(10),
140
     NOTW_CODELET(11),
141
     NOTWI_CODELET(11),
142
     NOTW_CODELET(12),
143
     NOTWI_CODELET(12),
144
     NOTW_CODELET(13),
145
     NOTWI_CODELET(13),
146
     NOTW_CODELET(14),
147
     NOTWI_CODELET(14),
148
     NOTW_CODELET(15),
149
     NOTWI_CODELET(15),
150
     NOTW_CODELET(16),
151
     NOTWI_CODELET(16),
152
     NOTW_CODELET(32),
153
     NOTWI_CODELET(32),
154
     NOTW_CODELET(64),
155
     NOTWI_CODELET(64),
156
     NOTW_CODELET(128),
157
     NOTWI_CODELET(128),
158
     TWIDDLE_CODELET(2),
159
     TWIDDLEI_CODELET(2),
160
     TWIDDLE_CODELET(3),
161
     TWIDDLEI_CODELET(3),
162
     TWIDDLE_CODELET(4),
163
     TWIDDLEI_CODELET(4),
164
     TWIDDLE_CODELET(5),
165
     TWIDDLEI_CODELET(5),
166
     TWIDDLE_CODELET(6),
167
     TWIDDLEI_CODELET(6),
168
     TWIDDLE_CODELET(7),
169
     TWIDDLEI_CODELET(7),
170
     TWIDDLE_CODELET(8),
171
     TWIDDLEI_CODELET(8),
172
     TWIDDLE_CODELET(9),
173
     TWIDDLEI_CODELET(9),
174
     TWIDDLE_CODELET(10),
175
     TWIDDLEI_CODELET(10),
176
     TWIDDLE_CODELET(16),
177
     TWIDDLEI_CODELET(16),
178
     TWIDDLE_CODELET(32),
179
     TWIDDLEI_CODELET(32),
180
     (fftw_codelet_desc *) 0
181
};