2 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
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.
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.
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
20 /* This file was automatically generated --- DO NOT EDIT */
21 /* Generated on Tue May 18 13:55:45 EDT 1999 */
26 /* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -twiddleinv 2 */
29 * This function contains 6 FP additions, 4 FP multiplications,
30 * (or, 4 additions, 2 multiplications, 2 fused multiply/add),
31 * 10 stack variables, and 8 memory accesses
41 void fftwi_twiddle_2(fftw_complex
*A
, const fftw_complex
*W
, int iostride
, int m
, int dist
)
46 for (i
= m
; i
> 0; i
= i
- 1, inout
= inout
+ dist
, W
= W
+ 1) {
51 ASSERT_ALIGNED_DOUBLE();
52 tmp1
= c_re(inout
[0]);
53 tmp8
= c_im(inout
[0]);
59 ASSERT_ALIGNED_DOUBLE();
60 tmp3
= c_re(inout
[iostride
]);
61 tmp5
= c_im(inout
[iostride
]);
64 tmp6
= (tmp2
* tmp3
) + (tmp4
* tmp5
);
65 tmp7
= (tmp2
* tmp5
) - (tmp4
* tmp3
);
67 c_re(inout
[iostride
]) = tmp1
- tmp6
;
68 c_re(inout
[0]) = tmp1
+ tmp6
;
69 c_im(inout
[0]) = tmp7
+ tmp8
;
70 c_im(inout
[iostride
]) = tmp8
- tmp7
;
74 static const int twiddle_order
[] =
76 fftw_codelet_desc fftwi_twiddle_2_desc
=
79 (void (*)()) fftwi_twiddle_2
,