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:29 EDT 1999 */
26 /* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -hc2hc-forward 3 */
29 * This function contains 25 FP additions, 16 FP multiplications,
30 * (or, 17 additions, 8 multiplications, 8 fused multiply/add),
31 * 15 stack variables, and 24 memory accesses
33 static const fftw_real K866025403
= FFTW_KONST(+0.866025403784438646763723170752936183471402627);
34 static const fftw_real K500000000
= FFTW_KONST(+0.500000000000000000000000000000000000000000000);
43 void fftw_hc2hc_forward_3(fftw_real
*A
, const fftw_complex
*W
, int iostride
, int m
, int dist
)
49 Y
= A
+ (3 * iostride
);
55 ASSERT_ALIGNED_DOUBLE();
58 tmp26
= X
[2 * iostride
];
59 tmp27
= tmp25
+ tmp26
;
60 X
[iostride
] = tmp24
- (K500000000
* tmp27
);
62 Y
[-iostride
] = K866025403
* (tmp26
- tmp25
);
66 for (i
= 2; i
< m
; i
= i
+ 2, X
= X
+ dist
, Y
= Y
- dist
, W
= W
+ 2) {
75 ASSERT_ALIGNED_DOUBLE();
77 tmp21
= Y
[-2 * iostride
];
83 ASSERT_ALIGNED_DOUBLE();
88 tmp9
= (tmp5
* tmp6
) - (tmp7
* tmp8
);
89 tmp17
= (tmp7
* tmp6
) + (tmp5
* tmp8
);
96 ASSERT_ALIGNED_DOUBLE();
97 tmp11
= X
[2 * iostride
];
101 tmp14
= (tmp10
* tmp11
) - (tmp12
* tmp13
);
102 tmp18
= (tmp12
* tmp11
) + (tmp10
* tmp13
);
104 tmp15
= tmp9
+ tmp14
;
105 tmp20
= tmp17
+ tmp18
;
111 ASSERT_ALIGNED_DOUBLE();
113 tmp16
= tmp4
- (K500000000
* tmp15
);
114 tmp19
= K866025403
* (tmp17
- tmp18
);
115 Y
[-2 * iostride
] = tmp16
- tmp19
;
116 X
[iostride
] = tmp16
+ tmp19
;
117 Y
[0] = tmp20
+ tmp21
;
118 tmp22
= tmp21
- (K500000000
* tmp20
);
119 tmp23
= K866025403
* (tmp14
- tmp9
);
120 X
[2 * iostride
] = -(tmp22
- tmp23
);
121 Y
[-iostride
] = tmp23
+ tmp22
;
128 ASSERT_ALIGNED_DOUBLE();
131 tmp2
= X
[2 * iostride
];
132 Y
[0] = -(K866025403
* (tmp1
+ tmp2
));
133 X
[iostride
] = tmp3
+ tmp2
- tmp1
;
134 X
[0] = tmp3
- (K500000000
* (tmp2
- tmp1
));
138 static const int twiddle_order
[] =
140 fftw_codelet_desc fftw_hc2hc_forward_3_desc
=
142 "fftw_hc2hc_forward_3",
143 (void (*)()) fftw_hc2hc_forward_3
,