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_twiddle_c -standalone -fma -reorder-insns -simd -compact -variables 100000 -include fftw-spu.h -trivial-stores -n 10 -name X(spu_t1fv_10) */ d@0: d@0: /* d@0: * This function contains 51 FP additions, 40 FP multiplications, d@0: * (or, 33 additions, 22 multiplications, 18 fused multiply/add), d@0: * 67 stack variables, 4 constants, and 20 memory accesses d@0: */ d@0: #include "fftw-spu.h" d@0: d@0: void X(spu_t1fv_10) (R *ri, R *ii, const R *W, stride rs, INT mb, INT me, INT ms) { d@0: DVK(KP559016994, +0.559016994374947424102293417182819058860154590); d@0: DVK(KP618033988, +0.618033988749894848204586834365638117720309180); d@0: DVK(KP951056516, +0.951056516295153572116439333379382143405698634); d@0: DVK(KP250000000, +0.250000000000000000000000000000000000000000000); d@0: INT m; d@0: R *x; d@0: x = ri; d@0: for (m = mb, W = W + (mb * ((TWVL / VL) * 18)); m < me; m = m + VL, x = x + (VL * ms), W = W + (TWVL * 18), MAKE_VOLATILE_STRIDE(rs)) { d@0: V T4, TF, Tv, Tw, TR, TQ, TM, TO, Tt, Tr, T1, T3, T2, T9, TG; d@0: V Tp, TK, Te, TH, Tk, TJ, T6, T8, T5, T7, Tm, To, Tl, Tn, Tb; d@0: V Td, Ta, Tc, Th, Tj, Tg, Ti, Tf, Tq, TI, TL, Ts, TN, TE, TZ; d@0: V Tx, TB, Tu, TA, Tz, TC, Ty, TD, TS, TW, TP, TV, TU, TX, TT; d@0: V TY; d@0: T1 = LD(&(x[0]), ms, &(x[0])); d@0: T2 = LD(&(x[WS(rs, 5)]), ms, &(x[WS(rs, 1)])); d@0: T3 = BYTWJ(&(W[TWVL * 8]), T2); d@0: T4 = VSUB(T1, T3); d@0: TF = VADD(T1, T3); d@0: T5 = LD(&(x[WS(rs, 2)]), ms, &(x[0])); d@0: T6 = BYTWJ(&(W[TWVL * 2]), T5); d@0: T7 = LD(&(x[WS(rs, 7)]), ms, &(x[WS(rs, 1)])); d@0: T8 = BYTWJ(&(W[TWVL * 12]), T7); d@0: T9 = VSUB(T6, T8); d@0: TG = VADD(T6, T8); d@0: Tl = LD(&(x[WS(rs, 6)]), ms, &(x[0])); d@0: Tm = BYTWJ(&(W[TWVL * 10]), Tl); d@0: Tn = LD(&(x[WS(rs, 1)]), ms, &(x[WS(rs, 1)])); d@0: To = BYTWJ(&(W[0]), Tn); d@0: Tp = VSUB(Tm, To); d@0: TK = VADD(Tm, To); d@0: Ta = LD(&(x[WS(rs, 8)]), ms, &(x[0])); d@0: Tb = BYTWJ(&(W[TWVL * 14]), Ta); d@0: Tc = LD(&(x[WS(rs, 3)]), ms, &(x[WS(rs, 1)])); d@0: Td = BYTWJ(&(W[TWVL * 4]), Tc); d@0: Te = VSUB(Tb, Td); d@0: TH = VADD(Tb, Td); d@0: Tg = LD(&(x[WS(rs, 4)]), ms, &(x[0])); d@0: Th = BYTWJ(&(W[TWVL * 6]), Tg); d@0: Ti = LD(&(x[WS(rs, 9)]), ms, &(x[WS(rs, 1)])); d@0: Tj = BYTWJ(&(W[TWVL * 16]), Ti); d@0: Tk = VSUB(Th, Tj); d@0: TJ = VADD(Th, Tj); d@0: Tv = VSUB(T9, Te); d@0: Tf = VADD(T9, Te); d@0: Tq = VADD(Tk, Tp); d@0: Tw = VSUB(Tk, Tp); d@0: TR = VSUB(TG, TH); d@0: TI = VADD(TG, TH); d@0: TL = VADD(TJ, TK); d@0: TQ = VSUB(TJ, TK); d@0: TM = VADD(TI, TL); d@0: TO = VSUB(TI, TL); d@0: Tt = VSUB(Tf, Tq); d@0: Tr = VADD(Tf, Tq); d@0: TE = VADD(T4, Tr); d@0: Ts = VFNMS(LDK(KP250000000), Tr, T4); d@0: ST(&(x[WS(rs, 5)]), TE, ms, &(x[WS(rs, 1)])); d@0: TZ = VADD(TF, TM); d@0: TN = VFNMS(LDK(KP250000000), TM, TF); d@0: ST(&(x[0]), TZ, ms, &(x[0])); d@0: Tx = VMUL(LDK(KP951056516), VFMA(LDK(KP618033988), Tw, Tv)); d@0: TB = VMUL(LDK(KP951056516), VFNMS(LDK(KP618033988), Tv, Tw)); d@0: Tu = VFMA(LDK(KP559016994), Tt, Ts); d@0: TA = VFNMS(LDK(KP559016994), Tt, Ts); d@0: Ty = VFNMSI(Tx, Tu); d@0: Tz = VFMAI(Tx, Tu); d@0: ST(&(x[WS(rs, 1)]), Ty, ms, &(x[WS(rs, 1)])); d@0: TD = VFMAI(TB, TA); d@0: TC = VFNMSI(TB, TA); d@0: ST(&(x[WS(rs, 7)]), TD, ms, &(x[WS(rs, 1)])); d@0: ST(&(x[WS(rs, 9)]), Tz, ms, &(x[WS(rs, 1)])); d@0: ST(&(x[WS(rs, 3)]), TC, ms, &(x[WS(rs, 1)])); d@0: TS = VMUL(LDK(KP951056516), VFNMS(LDK(KP618033988), TR, TQ)); d@0: TW = VMUL(LDK(KP951056516), VFMA(LDK(KP618033988), TQ, TR)); d@0: TP = VFNMS(LDK(KP559016994), TO, TN); d@0: TV = VFMA(LDK(KP559016994), TO, TN); d@0: TT = VFMAI(TS, TP); d@0: TU = VFNMSI(TS, TP); d@0: ST(&(x[WS(rs, 2)]), TT, ms, &(x[0])); d@0: TY = VFNMSI(TW, TV); d@0: TX = VFMAI(TW, TV); d@0: ST(&(x[WS(rs, 6)]), TY, ms, &(x[0])); d@0: ST(&(x[WS(rs, 8)]), TU, ms, &(x[0])); d@0: ST(&(x[WS(rs, 4)]), TX, ms, &(x[0])); d@0: } d@0: }