Skip to content

Commit b540263

Browse files
committed
simplify compute_plan using void *
1 parent d357e06 commit b540263

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fftw3.pd

+6-6
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ CODE:
157157
if( !do_double_precision )
158158
plan =
159159
fftwf_plan_dft( rank, dims_row_first,
160-
NUM2PTR(fftwf_complex*, in_data), NUM2PTR(fftwf_complex*, out_data),
160+
NUM2PTR(void*, in_data), NUM2PTR(void*, out_data),
161161
direction, FFTW_ESTIMATE);
162162
else
163163
plan =
164164
fftw_plan_dft( rank, dims_row_first,
165-
NUM2PTR(fftw_complex*, in_data), NUM2PTR(fftw_complex*, out_data),
165+
NUM2PTR(void*, in_data), NUM2PTR(void*, out_data),
166166
direction, FFTW_ESTIMATE);
167167
}
168168
else
@@ -173,25 +173,25 @@ CODE:
173173
if( !do_inverse_fft )
174174
plan =
175175
fftwf_plan_dft_r2c( rank, dims_row_first,
176-
NUM2PTR(float*, in_data), NUM2PTR(fftwf_complex*, out_data),
176+
NUM2PTR(void*, in_data), NUM2PTR(void*, out_data),
177177
FFTW_ESTIMATE );
178178
else
179179
plan =
180180
fftwf_plan_dft_c2r( rank, dims_row_first,
181-
NUM2PTR(fftwf_complex*, in_data), NUM2PTR(float*, out_data),
181+
NUM2PTR(void*, in_data), NUM2PTR(void*, out_data),
182182
FFTW_ESTIMATE );
183183
}
184184
else
185185
{
186186
if( !do_inverse_fft )
187187
plan =
188188
fftw_plan_dft_r2c( rank, dims_row_first,
189-
NUM2PTR(double*, in_data), NUM2PTR(fftw_complex*, out_data),
189+
NUM2PTR(void*, in_data), NUM2PTR(void*, out_data),
190190
FFTW_ESTIMATE );
191191
else
192192
plan =
193193
fftw_plan_dft_c2r( rank, dims_row_first,
194-
NUM2PTR(fftw_complex*, in_data), NUM2PTR(double*, out_data),
194+
NUM2PTR(void*, in_data), NUM2PTR(void*, out_data),
195195
FFTW_ESTIMATE );
196196
}
197197
}

0 commit comments

Comments
 (0)