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
|
/*
* Copyright (c) 1997-1999, 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 Mon Mar 24 02:08:52 EST 2003 */
#include "fftw-int.h"
#include "fftw.h"
/* Generated by: /homee/stevenj/cvs/fftw/gensrc/genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -hc2hc-backward 4 */
/*
* This function contains 34 FP additions, 18 FP multiplications,
* (or, 28 additions, 12 multiplications, 6 fused multiply/add),
* 15 stack variables, and 32 memory accesses
*/
static const fftw_real K1_414213562 =
FFTW_KONST(+1.414213562373095048801688724209698078569671875);
static const fftw_real K2_000000000 =
FFTW_KONST(+2.000000000000000000000000000000000000000000000);
/*
* Generator Id's :
* $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
* $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
* $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
*/
void fftw_hc2hc_backward_4(fftw_real *A, const fftw_complex *W,
int iostride, int m, int dist)
{
int i;
fftw_real *X;
fftw_real *Y;
X = A;
Y = A + (4 * iostride);
{
fftw_real tmp39;
fftw_real tmp42;
fftw_real tmp37;
fftw_real tmp40;
ASSERT_ALIGNED_DOUBLE;
{
fftw_real tmp38;
fftw_real tmp41;
fftw_real tmp35;
fftw_real tmp36;
ASSERT_ALIGNED_DOUBLE;
tmp38 = X[iostride];
tmp39 = K2_000000000 * tmp38;
tmp41 = Y[-iostride];
tmp42 = K2_000000000 * tmp41;
tmp35 = X[0];
tmp36 = X[2 * iostride];
tmp37 = tmp35 + tmp36;
tmp40 = tmp35 - tmp36;
}
X[2 * iostride] = tmp37 - tmp39;
X[0] = tmp37 + tmp39;
X[3 * iostride] = tmp40 + tmp42;
X[iostride] = tmp40 - tmp42;
}
X = X + dist;
Y = Y - dist;
for (i = 2; i < m; i = i + 2, X = X + dist, Y = Y - dist, W = W + 3) {
fftw_real tmp9;
fftw_real tmp28;
fftw_real tmp18;
fftw_real tmp25;
fftw_real tmp12;
fftw_real tmp24;
fftw_real tmp21;
fftw_real tmp29;
ASSERT_ALIGNED_DOUBLE;
{
fftw_real tmp7;
fftw_real tmp8;
fftw_real tmp16;
fftw_real tmp17;
ASSERT_ALIGNED_DOUBLE;
tmp7 = X[0];
tmp8 = Y[-2 * iostride];
tmp9 = tmp7 + tmp8;
tmp28 = tmp7 - tmp8;
tmp16 = Y[0];
tmp17 = X[2 * iostride];
tmp18 = tmp16 - tmp17;
tmp25 = tmp16 + tmp17;
}
{
fftw_real tmp10;
fftw_real tmp11;
fftw_real tmp19;
fftw_real tmp20;
ASSERT_ALIGNED_DOUBLE;
tmp10 = X[iostride];
tmp11 = Y[-3 * iostride];
tmp12 = tmp10 + tmp11;
tmp24 = tmp10 - tmp11;
tmp19 = Y[-iostride];
tmp20 = X[3 * iostride];
tmp21 = tmp19 - tmp20;
tmp29 = tmp19 + tmp20;
}
X[0] = tmp9 + tmp12;
{
fftw_real tmp14;
fftw_real tmp22;
fftw_real tmp13;
fftw_real tmp15;
ASSERT_ALIGNED_DOUBLE;
tmp14 = tmp9 - tmp12;
tmp22 = tmp18 - tmp21;
tmp13 = c_re(W[1]);
tmp15 = c_im(W[1]);
X[2 * iostride] = (tmp13 * tmp14) + (tmp15 * tmp22);
Y[-iostride] = (tmp13 * tmp22) - (tmp15 * tmp14);
}
Y[-3 * iostride] = tmp18 + tmp21;
{
fftw_real tmp26;
fftw_real tmp30;
fftw_real tmp23;
fftw_real tmp27;
ASSERT_ALIGNED_DOUBLE;
tmp26 = tmp24 + tmp25;
tmp30 = tmp28 - tmp29;
tmp23 = c_re(W[0]);
tmp27 = c_im(W[0]);
Y[-2 * iostride] = (tmp23 * tmp26) - (tmp27 * tmp30);
X[iostride] = (tmp27 * tmp26) + (tmp23 * tmp30);
}
{
fftw_real tmp32;
fftw_real tmp34;
fftw_real tmp31;
fftw_real tmp33;
ASSERT_ALIGNED_DOUBLE;
tmp32 = tmp25 - tmp24;
tmp34 = tmp28 + tmp29;
tmp31 = c_re(W[2]);
tmp33 = c_im(W[2]);
Y[0] = (tmp31 * tmp32) - (tmp33 * tmp34);
X[3 * iostride] = (tmp33 * tmp32) + (tmp31 * tmp34);
}
}
if (i == m) {
fftw_real tmp1;
fftw_real tmp2;
fftw_real tmp3;
fftw_real tmp4;
fftw_real tmp5;
fftw_real tmp6;
ASSERT_ALIGNED_DOUBLE;
tmp1 = X[0];
tmp2 = X[iostride];
tmp3 = tmp1 - tmp2;
tmp4 = Y[0];
tmp5 = Y[-iostride];
tmp6 = tmp4 + tmp5;
X[0] = K2_000000000 * (tmp1 + tmp2);
X[2 * iostride] = -(K2_000000000 * (tmp4 - tmp5));
X[iostride] = K1_414213562 * (tmp3 - tmp6);
X[3 * iostride] = -(K1_414213562 * (tmp3 + tmp6));
}
}
static const int twiddle_order[] = { 1, 2, 3 };
fftw_codelet_desc fftw_hc2hc_backward_4_desc = {
"fftw_hc2hc_backward_4",
(void (*)()) fftw_hc2hc_backward_4,
4,
FFTW_BACKWARD,
FFTW_HC2HC,
102,
3,
twiddle_order,
};
|