62 integer kc, np1, ns2, ier1, modn;
72 x_offset = 1 + x_dim1;
79 if ((i__1 = *
n - 2) < 0) {
81 }
else if (i__1 == 0) {
87 srt3s2 = sqrt(3.) / 2.;
88 xhold = srt3s2 * (x[x_dim1 + 1] + x[(x_dim1 << 1) + 1]);
89 x[(x_dim1 << 1) + 1] = srt3s2 * (x[x_dim1 + 1] - x[(x_dim1 << 1) + 1]);
90 x[x_dim1 + 1] = xhold;
96 for (k = 1; k <= i__1; ++k) {
98 t1 = x[k * x_dim1 + 1] - x[kc * x_dim1 + 1];
99 t2 = wsave[k] * (x[k * x_dim1 + 1] + x[kc * x_dim1 + 1]);
101 xh[kc + 1] = t2 - t1;
108 xh[ns2 + 2] = x[(ns2 + 1) * x_dim1 + 1] * 4.;
115 rfft1f_(&np1, &c__1, &xh[1], &lnxh, &wsave[ns2 + 1], &lnsv, work, &lnwk, &
129 x[x_dim1 + 1] = fnp1s4 * xh[1];
130 dsum = x[x_dim1 + 1];
132 for (i__ = 3; i__ <= i__1; i__ += 2) {
133 x[(i__ - 1) * x_dim1 + 1] = fnp1s4 * xh[i__];
134 dsum += fnp1s4 * xh[i__ - 1];
135 x[i__ * x_dim1 + 1] = dsum;
141 x[*
n * x_dim1 + 1] = fnp1s4 * xh[*
n + 1];