d@0: /* d@0: * Copyright (c) 2003, 2007-8 Matteo Frigo d@0: * Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology d@0: * d@0: * This program is free software; you can redistribute it and/or modify d@0: * it under the terms of the GNU General Public License as published by d@0: * the Free Software Foundation; either version 2 of the License, or d@0: * (at your option) any later version. d@0: * d@0: * This program is distributed in the hope that it will be useful, d@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of d@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the d@0: * GNU General Public License for more details. d@0: * d@0: * You should have received a copy of the GNU General Public License d@0: * along with this program; if not, write to the Free Software d@0: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA d@0: * d@0: */ d@0: /* Generated by: ../../genfft/gen_notw_c -standalone -fma -reorder-insns -simd -compact -variables 100000 -with-ostride 2 -include fftw-spu.h -n 7 -name X(spu_n2fv_7) */ d@0: d@0: /* d@0: * This function contains 30 FP additions, 24 FP multiplications, d@0: * (or, 9 additions, 3 multiplications, 21 fused multiply/add), d@0: * 37 stack variables, 6 constants, and 14 memory accesses d@0: */ d@0: #include "fftw-spu.h" d@0: d@0: void X(spu_n2fv_7) (const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs) { d@0: DVK(KP900968867, +0.900968867902419126236102319507445051165919162); d@0: DVK(KP692021471, +0.692021471630095869627814897002069140197260599); d@0: DVK(KP801937735, +0.801937735804838252472204639014890102331838324); d@0: DVK(KP974927912, +0.974927912181823607018131682993931217232785801); d@0: DVK(KP554958132, +0.554958132087371191422194871006410481067288862); d@0: DVK(KP356895867, +0.356895867892209443894399510021300583399127187); d@0: INT i; d@0: const R *xi; d@0: R *xo; d@0: xi = ri; d@0: xo = ro; d@0: for (i = v; i > 0; i = i - VL, xi = xi + (VL * ivs), xo = xo + (VL * ovs), MAKE_VOLATILE_STRIDE(is), MAKE_VOLATILE_STRIDE(os)) { d@0: V T1, T4, Te, Ta, Tf, T7, Tg, Tb, Th, Tr, To, Tm, Tj, T2, T3; d@0: V T8, T9, T5, T6, Ts, Tq, Tp, Ti, Td, Tc, Tn, Tl, Tk; d@0: T1 = LD(&(xi[0]), ivs, &(xi[0])); d@0: T2 = LD(&(xi[WS(is, 1)]), ivs, &(xi[WS(is, 1)])); d@0: T3 = LD(&(xi[WS(is, 6)]), ivs, &(xi[0])); d@0: T4 = VADD(T2, T3); d@0: Te = VSUB(T3, T2); d@0: T8 = LD(&(xi[WS(is, 3)]), ivs, &(xi[WS(is, 1)])); d@0: T9 = LD(&(xi[WS(is, 4)]), ivs, &(xi[0])); d@0: Ta = VADD(T8, T9); d@0: Tf = VSUB(T9, T8); d@0: T5 = LD(&(xi[WS(is, 2)]), ivs, &(xi[0])); d@0: T6 = LD(&(xi[WS(is, 5)]), ivs, &(xi[WS(is, 1)])); d@0: T7 = VADD(T5, T6); d@0: Tg = VSUB(T6, T5); d@0: Tb = VFNMS(LDK(KP356895867), T4, Ta); d@0: Th = VFMA(LDK(KP554958132), Tg, Tf); d@0: Tr = VFNMS(LDK(KP554958132), Te, Tg); d@0: To = VFNMS(LDK(KP356895867), Ta, T7); d@0: Tm = VFMA(LDK(KP554958132), Tf, Te); d@0: Tj = VFNMS(LDK(KP356895867), T7, T4); d@0: ST(&(xo[0]), VADD(T1, VADD(T4, VADD(T7, Ta))), ovs, &(xo[0])); d@0: Ts = VMUL(LDK(KP974927912), VFNMS(LDK(KP801937735), Tr, Tf)); d@0: Tp = VFNMS(LDK(KP692021471), To, T4); d@0: Tq = VFNMS(LDK(KP900968867), Tp, T1); d@0: ST(&(xo[8]), VFNMSI(Ts, Tq), ovs, &(xo[0])); d@0: ST(&(xo[6]), VFMAI(Ts, Tq), ovs, &(xo[2])); d@0: Ti = VMUL(LDK(KP974927912), VFNMS(LDK(KP801937735), Th, Te)); d@0: Tc = VFNMS(LDK(KP692021471), Tb, T7); d@0: Td = VFNMS(LDK(KP900968867), Tc, T1); d@0: ST(&(xo[10]), VFNMSI(Ti, Td), ovs, &(xo[2])); d@0: ST(&(xo[4]), VFMAI(Ti, Td), ovs, &(xo[0])); d@0: Tn = VMUL(LDK(KP974927912), VFMA(LDK(KP801937735), Tm, Tg)); d@0: Tk = VFNMS(LDK(KP692021471), Tj, Ta); d@0: Tl = VFNMS(LDK(KP900968867), Tk, T1); d@0: ST(&(xo[12]), VFNMSI(Tn, Tl), ovs, &(xo[0])); d@0: ST(&(xo[2]), VFMAI(Tn, Tl), ovs, &(xo[2])); d@0: } d@0: }