mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
54e93db207
not reliable yet
1893 lines
51 KiB
C
1893 lines
51 KiB
C
/*
|
|
* Copyright (c) 2003, 2007-14 Matteo Frigo
|
|
* Copyright (c) 2003, 2007-14 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
*/
|
|
|
|
/* This file was automatically generated --- DO NOT EDIT */
|
|
/* Generated on Tue Sep 14 10:46:36 EDT 2021 */
|
|
|
|
#include "rdft/codelet-rdft.h"
|
|
|
|
#if defined(ARCH_PREFERS_FMA) || defined(ISA_EXTENSION_PREFERS_FMA)
|
|
|
|
/* Generated by: ../../../genfft/gen_hc2c.native -fma -compact -variables 4 -pipeline-latency 4 -twiddle-log3 -precompute-twiddles -n 32 -dit -name hc2cf2_32 -include rdft/scalar/hc2cf.h */
|
|
|
|
/*
|
|
* This function contains 488 FP additions, 350 FP multiplications,
|
|
* (or, 236 additions, 98 multiplications, 252 fused multiply/add),
|
|
* 164 stack variables, 7 constants, and 128 memory accesses
|
|
*/
|
|
#include "rdft/scalar/hc2cf.h"
|
|
|
|
static void hc2cf2_32(R *Rp, R *Ip, R *Rm, R *Im, const R *W, stride rs, INT mb, INT me, INT ms)
|
|
{
|
|
DK(KP831469612, +0.831469612302545237078788377617905756738560812);
|
|
DK(KP980785280, +0.980785280403230449126182236134239036973933731);
|
|
DK(KP668178637, +0.668178637919298919997757686523080761552472251);
|
|
DK(KP198912367, +0.198912367379658006911597622644676228597850501);
|
|
DK(KP923879532, +0.923879532511286756128183189396788286822416626);
|
|
DK(KP414213562, +0.414213562373095048801688724209698078569671875);
|
|
DK(KP707106781, +0.707106781186547524400844362104849039284835938);
|
|
{
|
|
INT m;
|
|
for (m = mb, W = W + ((mb - 1) * 8); m < me; m = m + 1, Rp = Rp + ms, Ip = Ip + ms, Rm = Rm - ms, Im = Im - ms, W = W + 8, MAKE_VOLATILE_STRIDE(128, rs)) {
|
|
E T2, T8, T3, T6, Te, Ti, T5, T7, TJ, Tb, TM, Tc, Ts, T23, T1w;
|
|
E T19, TA, TE, T1s, T1N, T1o, T1C, T1F, T1K, T15, T11, T2F, T31, T2J, T34;
|
|
E T3f, T3z, T3j, T3C, Tw, T3M, T3Q, T1z, T2s, T2w, T1d, T3n, T3r, T26, T2T;
|
|
E T2X, Th, TR, TP, Td, Tj, TW, Tn, TS, T1U, T2b, T29, T1R, T1V, T2g;
|
|
E T1Z, T2c;
|
|
{
|
|
E Tz, T1n, T10, TD, T1r, T14, T9, T1Q, Tv, T1c;
|
|
{
|
|
E T4, T18, Ta, Tr;
|
|
T2 = W[0];
|
|
T8 = W[4];
|
|
T3 = W[2];
|
|
T6 = W[3];
|
|
T4 = T2 * T3;
|
|
T18 = T3 * T8;
|
|
Ta = T2 * T6;
|
|
Tr = T2 * T8;
|
|
Te = W[6];
|
|
Tz = T3 * Te;
|
|
T1n = T8 * Te;
|
|
T10 = T2 * Te;
|
|
Ti = W[7];
|
|
TD = T3 * Ti;
|
|
T1r = T8 * Ti;
|
|
T14 = T2 * Ti;
|
|
T5 = W[1];
|
|
T7 = FMA(T5, T6, T4);
|
|
TJ = FNMS(T5, T6, T4);
|
|
T9 = T7 * T8;
|
|
T1Q = TJ * T8;
|
|
Tb = FNMS(T5, T3, Ta);
|
|
TM = FMA(T5, T3, Ta);
|
|
Tc = W[5];
|
|
Tv = T2 * Tc;
|
|
T1c = T3 * Tc;
|
|
Ts = FMA(T5, Tc, Tr);
|
|
T23 = FMA(T6, Tc, T18);
|
|
T1w = FNMS(T5, Tc, Tr);
|
|
T19 = FNMS(T6, Tc, T18);
|
|
}
|
|
TA = FMA(T6, Ti, Tz);
|
|
TE = FNMS(T6, Te, TD);
|
|
T1s = FNMS(Tc, Te, T1r);
|
|
T1N = FMA(T6, Te, TD);
|
|
T1o = FMA(Tc, Ti, T1n);
|
|
T1C = FMA(T5, Ti, T10);
|
|
T1F = FNMS(T5, Te, T14);
|
|
T1K = FNMS(T6, Ti, Tz);
|
|
T15 = FMA(T5, Te, T14);
|
|
T11 = FNMS(T5, Ti, T10);
|
|
{
|
|
E T2E, T2I, T2S, T2W;
|
|
T2E = T7 * Te;
|
|
T2F = FMA(Tb, Ti, T2E);
|
|
T31 = FNMS(Tb, Ti, T2E);
|
|
T2I = T7 * Ti;
|
|
T2J = FNMS(Tb, Te, T2I);
|
|
T34 = FMA(Tb, Te, T2I);
|
|
{
|
|
E T3e, T3i, T3L, T3P;
|
|
T3e = TJ * Te;
|
|
T3f = FNMS(TM, Ti, T3e);
|
|
T3z = FMA(TM, Ti, T3e);
|
|
T3i = TJ * Ti;
|
|
T3j = FMA(TM, Te, T3i);
|
|
T3C = FNMS(TM, Te, T3i);
|
|
T3L = Ts * Te;
|
|
T3P = Ts * Ti;
|
|
Tw = FNMS(T5, T8, Tv);
|
|
T3M = FMA(Tw, Ti, T3L);
|
|
T3Q = FNMS(Tw, Te, T3P);
|
|
}
|
|
{
|
|
E T2r, T2v, T3m, T3q;
|
|
T2r = T1w * Te;
|
|
T2v = T1w * Ti;
|
|
T1z = FMA(T5, T8, Tv);
|
|
T2s = FMA(T1z, Ti, T2r);
|
|
T2w = FNMS(T1z, Te, T2v);
|
|
T3m = T19 * Te;
|
|
T3q = T19 * Ti;
|
|
T1d = FMA(T6, T8, T1c);
|
|
T3n = FMA(T1d, Ti, T3m);
|
|
T3r = FNMS(T1d, Te, T3q);
|
|
}
|
|
T2S = T23 * Te;
|
|
T2W = T23 * Ti;
|
|
T26 = FNMS(T6, T8, T1c);
|
|
T2T = FMA(T26, Ti, T2S);
|
|
T2X = FNMS(T26, Te, T2W);
|
|
{
|
|
E TQ, TV, Tf, Tm, Tg;
|
|
Tg = T7 * Tc;
|
|
Th = FMA(Tb, T8, Tg);
|
|
TR = FNMS(Tb, T8, Tg);
|
|
TP = FMA(Tb, Tc, T9);
|
|
TQ = TP * Te;
|
|
TV = TP * Ti;
|
|
Td = FNMS(Tb, Tc, T9);
|
|
Tf = Td * Te;
|
|
Tm = Td * Ti;
|
|
Tj = FMA(Th, Ti, Tf);
|
|
TW = FNMS(TR, Te, TV);
|
|
Tn = FNMS(Th, Te, Tm);
|
|
TS = FMA(TR, Ti, TQ);
|
|
}
|
|
{
|
|
E T2a, T2f, T1S, T1Y, T1T;
|
|
T1T = TJ * Tc;
|
|
T1U = FMA(TM, T8, T1T);
|
|
T2b = FNMS(TM, T8, T1T);
|
|
T29 = FMA(TM, Tc, T1Q);
|
|
T2a = T29 * Te;
|
|
T2f = T29 * Ti;
|
|
T1R = FNMS(TM, Tc, T1Q);
|
|
T1S = T1R * Te;
|
|
T1Y = T1R * Ti;
|
|
T1V = FMA(T1U, Ti, T1S);
|
|
T2g = FNMS(T2b, Te, T2f);
|
|
T1Z = FNMS(T1U, Te, T1Y);
|
|
T2c = FMA(T2b, Ti, T2a);
|
|
}
|
|
}
|
|
}
|
|
{
|
|
E Tq, T46, T8H, T97, TH, T98, T4b, T8D, TZ, T7f, T4j, T6t, T1g, T7g, T4q;
|
|
E T6u, T1v, T1I, T7m, T7j, T7k, T7l, T4z, T6y, T4G, T6x, T22, T2j, T7o, T7p;
|
|
E T7q, T7r, T4O, T6B, T4V, T6A, T3G, T7L, T7J, T8n, T5E, T6M, T61, T6P, T2N;
|
|
E T7A, T7x, T8i, T55, T6F, T5s, T6I, T43, T7G, T7O, T8o, T5L, T62, T5S, T63;
|
|
E T3c, T7y, T7D, T8j, T5c, T5t, T5j, T5u;
|
|
{
|
|
E T1, T8G, Tk, Tl, To, T8E, Tp, T8F;
|
|
T1 = Rp[0];
|
|
T8G = Rm[0];
|
|
Tk = Rp[WS(rs, 8)];
|
|
Tl = Tj * Tk;
|
|
To = Rm[WS(rs, 8)];
|
|
T8E = Tj * To;
|
|
Tp = FMA(Tn, To, Tl);
|
|
Tq = T1 + Tp;
|
|
T46 = T1 - Tp;
|
|
T8F = FNMS(Tn, Tk, T8E);
|
|
T8H = T8F + T8G;
|
|
T97 = T8G - T8F;
|
|
}
|
|
{
|
|
E Tt, Tu, Tx, T47, TB, TC, TF, T49;
|
|
Tt = Rp[WS(rs, 4)];
|
|
Tu = Ts * Tt;
|
|
Tx = Rm[WS(rs, 4)];
|
|
T47 = Ts * Tx;
|
|
TB = Rp[WS(rs, 12)];
|
|
TC = TA * TB;
|
|
TF = Rm[WS(rs, 12)];
|
|
T49 = TA * TF;
|
|
{
|
|
E Ty, TG, T48, T4a;
|
|
Ty = FMA(Tw, Tx, Tu);
|
|
TG = FMA(TE, TF, TC);
|
|
TH = Ty + TG;
|
|
T98 = Ty - TG;
|
|
T48 = FNMS(Tw, Tt, T47);
|
|
T4a = FNMS(TE, TB, T49);
|
|
T4b = T48 - T4a;
|
|
T8D = T48 + T4a;
|
|
}
|
|
}
|
|
{
|
|
E TO, T4f, TY, T4h, T4d, T4i;
|
|
{
|
|
E TK, TL, TN, T4e;
|
|
TK = Rp[WS(rs, 2)];
|
|
TL = TJ * TK;
|
|
TN = Rm[WS(rs, 2)];
|
|
T4e = TJ * TN;
|
|
TO = FMA(TM, TN, TL);
|
|
T4f = FNMS(TM, TK, T4e);
|
|
}
|
|
{
|
|
E TT, TU, TX, T4g;
|
|
TT = Rp[WS(rs, 10)];
|
|
TU = TS * TT;
|
|
TX = Rm[WS(rs, 10)];
|
|
T4g = TS * TX;
|
|
TY = FMA(TW, TX, TU);
|
|
T4h = FNMS(TW, TT, T4g);
|
|
}
|
|
TZ = TO + TY;
|
|
T7f = T4f + T4h;
|
|
T4d = TO - TY;
|
|
T4i = T4f - T4h;
|
|
T4j = T4d + T4i;
|
|
T6t = T4i - T4d;
|
|
}
|
|
{
|
|
E T17, T4m, T1f, T4o, T4k, T4p;
|
|
{
|
|
E T12, T13, T16, T4l;
|
|
T12 = Rp[WS(rs, 14)];
|
|
T13 = T11 * T12;
|
|
T16 = Rm[WS(rs, 14)];
|
|
T4l = T11 * T16;
|
|
T17 = FMA(T15, T16, T13);
|
|
T4m = FNMS(T15, T12, T4l);
|
|
}
|
|
{
|
|
E T1a, T1b, T1e, T4n;
|
|
T1a = Rp[WS(rs, 6)];
|
|
T1b = T19 * T1a;
|
|
T1e = Rm[WS(rs, 6)];
|
|
T4n = T19 * T1e;
|
|
T1f = FMA(T1d, T1e, T1b);
|
|
T4o = FNMS(T1d, T1a, T4n);
|
|
}
|
|
T1g = T17 + T1f;
|
|
T7g = T4m + T4o;
|
|
T4k = T17 - T1f;
|
|
T4p = T4m - T4o;
|
|
T4q = T4k - T4p;
|
|
T6u = T4k + T4p;
|
|
}
|
|
{
|
|
E T1m, T4B, T1H, T4x, T1u, T4D, T1B, T4v;
|
|
{
|
|
E T1j, T1k, T1l, T4A;
|
|
T1j = Rp[WS(rs, 1)];
|
|
T1k = T7 * T1j;
|
|
T1l = Rm[WS(rs, 1)];
|
|
T4A = T7 * T1l;
|
|
T1m = FMA(Tb, T1l, T1k);
|
|
T4B = FNMS(Tb, T1j, T4A);
|
|
}
|
|
{
|
|
E T1D, T1E, T1G, T4w;
|
|
T1D = Rp[WS(rs, 13)];
|
|
T1E = T1C * T1D;
|
|
T1G = Rm[WS(rs, 13)];
|
|
T4w = T1C * T1G;
|
|
T1H = FMA(T1F, T1G, T1E);
|
|
T4x = FNMS(T1F, T1D, T4w);
|
|
}
|
|
{
|
|
E T1p, T1q, T1t, T4C;
|
|
T1p = Rp[WS(rs, 9)];
|
|
T1q = T1o * T1p;
|
|
T1t = Rm[WS(rs, 9)];
|
|
T4C = T1o * T1t;
|
|
T1u = FMA(T1s, T1t, T1q);
|
|
T4D = FNMS(T1s, T1p, T4C);
|
|
}
|
|
{
|
|
E T1x, T1y, T1A, T4u;
|
|
T1x = Rp[WS(rs, 5)];
|
|
T1y = T1w * T1x;
|
|
T1A = Rm[WS(rs, 5)];
|
|
T4u = T1w * T1A;
|
|
T1B = FMA(T1z, T1A, T1y);
|
|
T4v = FNMS(T1z, T1x, T4u);
|
|
}
|
|
T1v = T1m + T1u;
|
|
T1I = T1B + T1H;
|
|
T7m = T1v - T1I;
|
|
T7j = T4B + T4D;
|
|
T7k = T4v + T4x;
|
|
T7l = T7j - T7k;
|
|
{
|
|
E T4t, T4y, T4E, T4F;
|
|
T4t = T1m - T1u;
|
|
T4y = T4v - T4x;
|
|
T4z = T4t + T4y;
|
|
T6y = T4t - T4y;
|
|
T4E = T4B - T4D;
|
|
T4F = T1B - T1H;
|
|
T4G = T4E - T4F;
|
|
T6x = T4E + T4F;
|
|
}
|
|
}
|
|
{
|
|
E T1P, T4Q, T2i, T4M, T21, T4S, T28, T4K;
|
|
{
|
|
E T1L, T1M, T1O, T4P;
|
|
T1L = Rp[WS(rs, 15)];
|
|
T1M = T1K * T1L;
|
|
T1O = Rm[WS(rs, 15)];
|
|
T4P = T1K * T1O;
|
|
T1P = FMA(T1N, T1O, T1M);
|
|
T4Q = FNMS(T1N, T1L, T4P);
|
|
}
|
|
{
|
|
E T2d, T2e, T2h, T4L;
|
|
T2d = Rp[WS(rs, 11)];
|
|
T2e = T2c * T2d;
|
|
T2h = Rm[WS(rs, 11)];
|
|
T4L = T2c * T2h;
|
|
T2i = FMA(T2g, T2h, T2e);
|
|
T4M = FNMS(T2g, T2d, T4L);
|
|
}
|
|
{
|
|
E T1W, T1X, T20, T4R;
|
|
T1W = Rp[WS(rs, 7)];
|
|
T1X = T1V * T1W;
|
|
T20 = Rm[WS(rs, 7)];
|
|
T4R = T1V * T20;
|
|
T21 = FMA(T1Z, T20, T1X);
|
|
T4S = FNMS(T1Z, T1W, T4R);
|
|
}
|
|
{
|
|
E T24, T25, T27, T4J;
|
|
T24 = Rp[WS(rs, 3)];
|
|
T25 = T23 * T24;
|
|
T27 = Rm[WS(rs, 3)];
|
|
T4J = T23 * T27;
|
|
T28 = FMA(T26, T27, T25);
|
|
T4K = FNMS(T26, T24, T4J);
|
|
}
|
|
T22 = T1P + T21;
|
|
T2j = T28 + T2i;
|
|
T7o = T22 - T2j;
|
|
T7p = T4Q + T4S;
|
|
T7q = T4K + T4M;
|
|
T7r = T7p - T7q;
|
|
{
|
|
E T4I, T4N, T4T, T4U;
|
|
T4I = T1P - T21;
|
|
T4N = T4K - T4M;
|
|
T4O = T4I + T4N;
|
|
T6B = T4I - T4N;
|
|
T4T = T4Q - T4S;
|
|
T4U = T28 - T2i;
|
|
T4V = T4T - T4U;
|
|
T6A = T4T + T4U;
|
|
}
|
|
}
|
|
{
|
|
E T3l, T5W, T3E, T5C, T3t, T5Y, T3y, T5A;
|
|
{
|
|
E T3g, T3h, T3k, T5V;
|
|
T3g = Ip[WS(rs, 15)];
|
|
T3h = T3f * T3g;
|
|
T3k = Im[WS(rs, 15)];
|
|
T5V = T3f * T3k;
|
|
T3l = FMA(T3j, T3k, T3h);
|
|
T5W = FNMS(T3j, T3g, T5V);
|
|
}
|
|
{
|
|
E T3A, T3B, T3D, T5B;
|
|
T3A = Ip[WS(rs, 11)];
|
|
T3B = T3z * T3A;
|
|
T3D = Im[WS(rs, 11)];
|
|
T5B = T3z * T3D;
|
|
T3E = FMA(T3C, T3D, T3B);
|
|
T5C = FNMS(T3C, T3A, T5B);
|
|
}
|
|
{
|
|
E T3o, T3p, T3s, T5X;
|
|
T3o = Ip[WS(rs, 7)];
|
|
T3p = T3n * T3o;
|
|
T3s = Im[WS(rs, 7)];
|
|
T5X = T3n * T3s;
|
|
T3t = FMA(T3r, T3s, T3p);
|
|
T5Y = FNMS(T3r, T3o, T5X);
|
|
}
|
|
{
|
|
E T3v, T3w, T3x, T5z;
|
|
T3v = Ip[WS(rs, 3)];
|
|
T3w = TP * T3v;
|
|
T3x = Im[WS(rs, 3)];
|
|
T5z = TP * T3x;
|
|
T3y = FMA(TR, T3x, T3w);
|
|
T5A = FNMS(TR, T3v, T5z);
|
|
}
|
|
{
|
|
E T3u, T3F, T7H, T7I;
|
|
T3u = T3l + T3t;
|
|
T3F = T3y + T3E;
|
|
T3G = T3u + T3F;
|
|
T7L = T3u - T3F;
|
|
T7H = T5W + T5Y;
|
|
T7I = T5A + T5C;
|
|
T7J = T7H - T7I;
|
|
T8n = T7H + T7I;
|
|
}
|
|
{
|
|
E T5y, T5D, T5Z, T60;
|
|
T5y = T3l - T3t;
|
|
T5D = T5A - T5C;
|
|
T5E = T5y + T5D;
|
|
T6M = T5y - T5D;
|
|
T5Z = T5W - T5Y;
|
|
T60 = T3E - T3y;
|
|
T61 = T5Z + T60;
|
|
T6P = T60 - T5Z;
|
|
}
|
|
}
|
|
{
|
|
E T2q, T5n, T2L, T53, T2y, T5p, T2D, T51;
|
|
{
|
|
E T2n, T2o, T2p, T5m;
|
|
T2n = Ip[0];
|
|
T2o = T2 * T2n;
|
|
T2p = Im[0];
|
|
T5m = T2 * T2p;
|
|
T2q = FMA(T5, T2p, T2o);
|
|
T5n = FNMS(T5, T2n, T5m);
|
|
}
|
|
{
|
|
E T2G, T2H, T2K, T52;
|
|
T2G = Ip[WS(rs, 12)];
|
|
T2H = T2F * T2G;
|
|
T2K = Im[WS(rs, 12)];
|
|
T52 = T2F * T2K;
|
|
T2L = FMA(T2J, T2K, T2H);
|
|
T53 = FNMS(T2J, T2G, T52);
|
|
}
|
|
{
|
|
E T2t, T2u, T2x, T5o;
|
|
T2t = Ip[WS(rs, 8)];
|
|
T2u = T2s * T2t;
|
|
T2x = Im[WS(rs, 8)];
|
|
T5o = T2s * T2x;
|
|
T2y = FMA(T2w, T2x, T2u);
|
|
T5p = FNMS(T2w, T2t, T5o);
|
|
}
|
|
{
|
|
E T2A, T2B, T2C, T50;
|
|
T2A = Ip[WS(rs, 4)];
|
|
T2B = T8 * T2A;
|
|
T2C = Im[WS(rs, 4)];
|
|
T50 = T8 * T2C;
|
|
T2D = FMA(Tc, T2C, T2B);
|
|
T51 = FNMS(Tc, T2A, T50);
|
|
}
|
|
{
|
|
E T2z, T2M, T7v, T7w;
|
|
T2z = T2q + T2y;
|
|
T2M = T2D + T2L;
|
|
T2N = T2z + T2M;
|
|
T7A = T2z - T2M;
|
|
T7v = T5n + T5p;
|
|
T7w = T51 + T53;
|
|
T7x = T7v - T7w;
|
|
T8i = T7v + T7w;
|
|
}
|
|
{
|
|
E T4Z, T54, T5q, T5r;
|
|
T4Z = T2q - T2y;
|
|
T54 = T51 - T53;
|
|
T55 = T4Z + T54;
|
|
T6F = T4Z - T54;
|
|
T5q = T5n - T5p;
|
|
T5r = T2D - T2L;
|
|
T5s = T5q - T5r;
|
|
T6I = T5q + T5r;
|
|
}
|
|
}
|
|
{
|
|
E T3K, T5H, T41, T5Q, T3S, T5J, T3X, T5O;
|
|
{
|
|
E T3H, T3I, T3J, T5G;
|
|
T3H = Ip[WS(rs, 1)];
|
|
T3I = T3 * T3H;
|
|
T3J = Im[WS(rs, 1)];
|
|
T5G = T3 * T3J;
|
|
T3K = FMA(T6, T3J, T3I);
|
|
T5H = FNMS(T6, T3H, T5G);
|
|
}
|
|
{
|
|
E T3Y, T3Z, T40, T5P;
|
|
T3Y = Ip[WS(rs, 5)];
|
|
T3Z = Td * T3Y;
|
|
T40 = Im[WS(rs, 5)];
|
|
T5P = Td * T40;
|
|
T41 = FMA(Th, T40, T3Z);
|
|
T5Q = FNMS(Th, T3Y, T5P);
|
|
}
|
|
{
|
|
E T3N, T3O, T3R, T5I;
|
|
T3N = Ip[WS(rs, 9)];
|
|
T3O = T3M * T3N;
|
|
T3R = Im[WS(rs, 9)];
|
|
T5I = T3M * T3R;
|
|
T3S = FMA(T3Q, T3R, T3O);
|
|
T5J = FNMS(T3Q, T3N, T5I);
|
|
}
|
|
{
|
|
E T3U, T3V, T3W, T5N;
|
|
T3U = Ip[WS(rs, 13)];
|
|
T3V = Te * T3U;
|
|
T3W = Im[WS(rs, 13)];
|
|
T5N = Te * T3W;
|
|
T3X = FMA(Ti, T3W, T3V);
|
|
T5O = FNMS(Ti, T3U, T5N);
|
|
}
|
|
{
|
|
E T3T, T42, T7M, T7N;
|
|
T3T = T3K + T3S;
|
|
T42 = T3X + T41;
|
|
T43 = T3T + T42;
|
|
T7G = T42 - T3T;
|
|
T7M = T5H + T5J;
|
|
T7N = T5O + T5Q;
|
|
T7O = T7M - T7N;
|
|
T8o = T7M + T7N;
|
|
}
|
|
{
|
|
E T5F, T5K, T5M, T5R;
|
|
T5F = T3K - T3S;
|
|
T5K = T5H - T5J;
|
|
T5L = T5F + T5K;
|
|
T62 = T5K - T5F;
|
|
T5M = T3X - T41;
|
|
T5R = T5O - T5Q;
|
|
T5S = T5M - T5R;
|
|
T63 = T5M + T5R;
|
|
}
|
|
}
|
|
{
|
|
E T2R, T58, T3a, T5h, T2Z, T5a, T36, T5f;
|
|
{
|
|
E T2O, T2P, T2Q, T57;
|
|
T2O = Ip[WS(rs, 2)];
|
|
T2P = T29 * T2O;
|
|
T2Q = Im[WS(rs, 2)];
|
|
T57 = T29 * T2Q;
|
|
T2R = FMA(T2b, T2Q, T2P);
|
|
T58 = FNMS(T2b, T2O, T57);
|
|
}
|
|
{
|
|
E T37, T38, T39, T5g;
|
|
T37 = Ip[WS(rs, 6)];
|
|
T38 = T1R * T37;
|
|
T39 = Im[WS(rs, 6)];
|
|
T5g = T1R * T39;
|
|
T3a = FMA(T1U, T39, T38);
|
|
T5h = FNMS(T1U, T37, T5g);
|
|
}
|
|
{
|
|
E T2U, T2V, T2Y, T59;
|
|
T2U = Ip[WS(rs, 10)];
|
|
T2V = T2T * T2U;
|
|
T2Y = Im[WS(rs, 10)];
|
|
T59 = T2T * T2Y;
|
|
T2Z = FMA(T2X, T2Y, T2V);
|
|
T5a = FNMS(T2X, T2U, T59);
|
|
}
|
|
{
|
|
E T32, T33, T35, T5e;
|
|
T32 = Ip[WS(rs, 14)];
|
|
T33 = T31 * T32;
|
|
T35 = Im[WS(rs, 14)];
|
|
T5e = T31 * T35;
|
|
T36 = FMA(T34, T35, T33);
|
|
T5f = FNMS(T34, T32, T5e);
|
|
}
|
|
{
|
|
E T30, T3b, T7B, T7C;
|
|
T30 = T2R + T2Z;
|
|
T3b = T36 + T3a;
|
|
T3c = T30 + T3b;
|
|
T7y = T3b - T30;
|
|
T7B = T58 + T5a;
|
|
T7C = T5f + T5h;
|
|
T7D = T7B - T7C;
|
|
T8j = T7B + T7C;
|
|
}
|
|
{
|
|
E T56, T5b, T5d, T5i;
|
|
T56 = T2R - T2Z;
|
|
T5b = T58 - T5a;
|
|
T5c = T56 + T5b;
|
|
T5t = T5b - T56;
|
|
T5d = T36 - T3a;
|
|
T5i = T5f - T5h;
|
|
T5j = T5d - T5i;
|
|
T5u = T5d + T5i;
|
|
}
|
|
}
|
|
{
|
|
E T1i, T8c, T8z, T8A, T8J, T8O, T2l, T8N, T45, T8L, T8l, T8t, T8q, T8u, T8f;
|
|
E T8B;
|
|
{
|
|
E TI, T1h, T8x, T8y;
|
|
TI = Tq + TH;
|
|
T1h = TZ + T1g;
|
|
T1i = TI + T1h;
|
|
T8c = TI - T1h;
|
|
T8x = T8i + T8j;
|
|
T8y = T8n + T8o;
|
|
T8z = T8x - T8y;
|
|
T8A = T8x + T8y;
|
|
}
|
|
{
|
|
E T8C, T8I, T1J, T2k;
|
|
T8C = T7f + T7g;
|
|
T8I = T8D + T8H;
|
|
T8J = T8C + T8I;
|
|
T8O = T8I - T8C;
|
|
T1J = T1v + T1I;
|
|
T2k = T22 + T2j;
|
|
T2l = T1J + T2k;
|
|
T8N = T2k - T1J;
|
|
}
|
|
{
|
|
E T3d, T44, T8h, T8k;
|
|
T3d = T2N + T3c;
|
|
T44 = T3G + T43;
|
|
T45 = T3d + T44;
|
|
T8L = T44 - T3d;
|
|
T8h = T2N - T3c;
|
|
T8k = T8i - T8j;
|
|
T8l = T8h + T8k;
|
|
T8t = T8k - T8h;
|
|
}
|
|
{
|
|
E T8m, T8p, T8d, T8e;
|
|
T8m = T3G - T43;
|
|
T8p = T8n - T8o;
|
|
T8q = T8m - T8p;
|
|
T8u = T8m + T8p;
|
|
T8d = T7j + T7k;
|
|
T8e = T7p + T7q;
|
|
T8f = T8d - T8e;
|
|
T8B = T8d + T8e;
|
|
}
|
|
{
|
|
E T2m, T8K, T8w, T8M;
|
|
T2m = T1i + T2l;
|
|
Rm[WS(rs, 15)] = T2m - T45;
|
|
Rp[0] = T2m + T45;
|
|
T8K = T8B + T8J;
|
|
Im[WS(rs, 15)] = T8A - T8K;
|
|
Ip[0] = T8A + T8K;
|
|
T8w = T1i - T2l;
|
|
Rm[WS(rs, 7)] = T8w - T8z;
|
|
Rp[WS(rs, 8)] = T8w + T8z;
|
|
T8M = T8J - T8B;
|
|
Im[WS(rs, 7)] = T8L - T8M;
|
|
Ip[WS(rs, 8)] = T8L + T8M;
|
|
}
|
|
{
|
|
E T8g, T8r, T8P, T8Q;
|
|
T8g = T8c + T8f;
|
|
T8r = T8l + T8q;
|
|
Rm[WS(rs, 11)] = FNMS(KP707106781, T8r, T8g);
|
|
Rp[WS(rs, 4)] = FMA(KP707106781, T8r, T8g);
|
|
T8P = T8N + T8O;
|
|
T8Q = T8t + T8u;
|
|
Im[WS(rs, 11)] = FMS(KP707106781, T8Q, T8P);
|
|
Ip[WS(rs, 4)] = FMA(KP707106781, T8Q, T8P);
|
|
}
|
|
{
|
|
E T8s, T8v, T8R, T8S;
|
|
T8s = T8c - T8f;
|
|
T8v = T8t - T8u;
|
|
Rm[WS(rs, 3)] = FNMS(KP707106781, T8v, T8s);
|
|
Rp[WS(rs, 12)] = FMA(KP707106781, T8v, T8s);
|
|
T8R = T8O - T8N;
|
|
T8S = T8q - T8l;
|
|
Im[WS(rs, 3)] = FMS(KP707106781, T8S, T8R);
|
|
Ip[WS(rs, 12)] = FMA(KP707106781, T8S, T8R);
|
|
}
|
|
}
|
|
{
|
|
E T7i, T7W, T86, T8a, T8V, T91, T7t, T8W, T7F, T7T, T7Z, T92, T83, T89, T7Q;
|
|
E T7U;
|
|
{
|
|
E T7e, T7h, T84, T85;
|
|
T7e = Tq - TH;
|
|
T7h = T7f - T7g;
|
|
T7i = T7e - T7h;
|
|
T7W = T7e + T7h;
|
|
T84 = T7L + T7O;
|
|
T85 = T7J + T7G;
|
|
T86 = FNMS(KP414213562, T85, T84);
|
|
T8a = FMA(KP414213562, T84, T85);
|
|
}
|
|
{
|
|
E T8T, T8U, T7n, T7s;
|
|
T8T = T1g - TZ;
|
|
T8U = T8H - T8D;
|
|
T8V = T8T + T8U;
|
|
T91 = T8U - T8T;
|
|
T7n = T7l - T7m;
|
|
T7s = T7o + T7r;
|
|
T7t = T7n - T7s;
|
|
T8W = T7n + T7s;
|
|
}
|
|
{
|
|
E T7z, T7E, T7X, T7Y;
|
|
T7z = T7x - T7y;
|
|
T7E = T7A - T7D;
|
|
T7F = FMA(KP414213562, T7E, T7z);
|
|
T7T = FNMS(KP414213562, T7z, T7E);
|
|
T7X = T7m + T7l;
|
|
T7Y = T7o - T7r;
|
|
T7Z = T7X + T7Y;
|
|
T92 = T7Y - T7X;
|
|
}
|
|
{
|
|
E T81, T82, T7K, T7P;
|
|
T81 = T7A + T7D;
|
|
T82 = T7x + T7y;
|
|
T83 = FMA(KP414213562, T82, T81);
|
|
T89 = FNMS(KP414213562, T81, T82);
|
|
T7K = T7G - T7J;
|
|
T7P = T7L - T7O;
|
|
T7Q = FMA(KP414213562, T7P, T7K);
|
|
T7U = FNMS(KP414213562, T7K, T7P);
|
|
}
|
|
{
|
|
E T7u, T7R, T93, T94;
|
|
T7u = FMA(KP707106781, T7t, T7i);
|
|
T7R = T7F + T7Q;
|
|
Rm[WS(rs, 9)] = FNMS(KP923879532, T7R, T7u);
|
|
Rp[WS(rs, 6)] = FMA(KP923879532, T7R, T7u);
|
|
T93 = FMA(KP707106781, T92, T91);
|
|
T94 = T7U - T7T;
|
|
Im[WS(rs, 9)] = FMS(KP923879532, T94, T93);
|
|
Ip[WS(rs, 6)] = FMA(KP923879532, T94, T93);
|
|
}
|
|
{
|
|
E T7S, T7V, T95, T96;
|
|
T7S = FNMS(KP707106781, T7t, T7i);
|
|
T7V = T7T + T7U;
|
|
Rp[WS(rs, 14)] = FNMS(KP923879532, T7V, T7S);
|
|
Rm[WS(rs, 1)] = FMA(KP923879532, T7V, T7S);
|
|
T95 = FNMS(KP707106781, T92, T91);
|
|
T96 = T7Q - T7F;
|
|
Im[WS(rs, 1)] = FMS(KP923879532, T96, T95);
|
|
Ip[WS(rs, 14)] = FMA(KP923879532, T96, T95);
|
|
}
|
|
{
|
|
E T80, T87, T8X, T8Y;
|
|
T80 = FMA(KP707106781, T7Z, T7W);
|
|
T87 = T83 + T86;
|
|
Rm[WS(rs, 13)] = FNMS(KP923879532, T87, T80);
|
|
Rp[WS(rs, 2)] = FMA(KP923879532, T87, T80);
|
|
T8X = FMA(KP707106781, T8W, T8V);
|
|
T8Y = T89 + T8a;
|
|
Im[WS(rs, 13)] = FMS(KP923879532, T8Y, T8X);
|
|
Ip[WS(rs, 2)] = FMA(KP923879532, T8Y, T8X);
|
|
}
|
|
{
|
|
E T88, T8b, T8Z, T90;
|
|
T88 = FNMS(KP707106781, T7Z, T7W);
|
|
T8b = T89 - T8a;
|
|
Rm[WS(rs, 5)] = FNMS(KP923879532, T8b, T88);
|
|
Rp[WS(rs, 10)] = FMA(KP923879532, T8b, T88);
|
|
T8Z = FNMS(KP707106781, T8W, T8V);
|
|
T90 = T86 - T83;
|
|
Im[WS(rs, 5)] = FMS(KP923879532, T90, T8Z);
|
|
Ip[WS(rs, 10)] = FMA(KP923879532, T90, T8Z);
|
|
}
|
|
}
|
|
{
|
|
E T4s, T6c, T4X, T9i, T9b, T9h, T6f, T9c, T66, T6q, T6a, T6m, T5x, T6p, T69;
|
|
E T6j;
|
|
{
|
|
E T4c, T4r, T6d, T6e;
|
|
T4c = T46 + T4b;
|
|
T4r = T4j + T4q;
|
|
T4s = FMA(KP707106781, T4r, T4c);
|
|
T6c = FNMS(KP707106781, T4r, T4c);
|
|
{
|
|
E T4H, T4W, T99, T9a;
|
|
T4H = FMA(KP414213562, T4G, T4z);
|
|
T4W = FNMS(KP414213562, T4V, T4O);
|
|
T4X = T4H + T4W;
|
|
T9i = T4W - T4H;
|
|
T99 = T97 - T98;
|
|
T9a = T6t + T6u;
|
|
T9b = FMA(KP707106781, T9a, T99);
|
|
T9h = FNMS(KP707106781, T9a, T99);
|
|
}
|
|
T6d = FNMS(KP414213562, T4z, T4G);
|
|
T6e = FMA(KP414213562, T4O, T4V);
|
|
T6f = T6d - T6e;
|
|
T9c = T6d + T6e;
|
|
{
|
|
E T5U, T6k, T65, T6l, T5T, T64;
|
|
T5T = T5L + T5S;
|
|
T5U = FMA(KP707106781, T5T, T5E);
|
|
T6k = FNMS(KP707106781, T5T, T5E);
|
|
T64 = T62 + T63;
|
|
T65 = FMA(KP707106781, T64, T61);
|
|
T6l = FNMS(KP707106781, T64, T61);
|
|
T66 = FNMS(KP198912367, T65, T5U);
|
|
T6q = FNMS(KP668178637, T6k, T6l);
|
|
T6a = FMA(KP198912367, T5U, T65);
|
|
T6m = FMA(KP668178637, T6l, T6k);
|
|
}
|
|
{
|
|
E T5l, T6h, T5w, T6i, T5k, T5v;
|
|
T5k = T5c + T5j;
|
|
T5l = FMA(KP707106781, T5k, T55);
|
|
T6h = FNMS(KP707106781, T5k, T55);
|
|
T5v = T5t + T5u;
|
|
T5w = FMA(KP707106781, T5v, T5s);
|
|
T6i = FNMS(KP707106781, T5v, T5s);
|
|
T5x = FMA(KP198912367, T5w, T5l);
|
|
T6p = FMA(KP668178637, T6h, T6i);
|
|
T69 = FNMS(KP198912367, T5l, T5w);
|
|
T6j = FNMS(KP668178637, T6i, T6h);
|
|
}
|
|
}
|
|
{
|
|
E T4Y, T67, T9d, T9e;
|
|
T4Y = FMA(KP923879532, T4X, T4s);
|
|
T67 = T5x + T66;
|
|
Rm[WS(rs, 14)] = FNMS(KP980785280, T67, T4Y);
|
|
Rp[WS(rs, 1)] = FMA(KP980785280, T67, T4Y);
|
|
T9d = FMA(KP923879532, T9c, T9b);
|
|
T9e = T69 + T6a;
|
|
Im[WS(rs, 14)] = FMS(KP980785280, T9e, T9d);
|
|
Ip[WS(rs, 1)] = FMA(KP980785280, T9e, T9d);
|
|
}
|
|
{
|
|
E T68, T6b, T9f, T9g;
|
|
T68 = FNMS(KP923879532, T4X, T4s);
|
|
T6b = T69 - T6a;
|
|
Rm[WS(rs, 6)] = FNMS(KP980785280, T6b, T68);
|
|
Rp[WS(rs, 9)] = FMA(KP980785280, T6b, T68);
|
|
T9f = FNMS(KP923879532, T9c, T9b);
|
|
T9g = T66 - T5x;
|
|
Im[WS(rs, 6)] = FMS(KP980785280, T9g, T9f);
|
|
Ip[WS(rs, 9)] = FMA(KP980785280, T9g, T9f);
|
|
}
|
|
{
|
|
E T6g, T6n, T9l, T9m;
|
|
T6g = FNMS(KP923879532, T6f, T6c);
|
|
T6n = T6j + T6m;
|
|
Rp[WS(rs, 13)] = FNMS(KP831469612, T6n, T6g);
|
|
Rm[WS(rs, 2)] = FMA(KP831469612, T6n, T6g);
|
|
T9l = FNMS(KP923879532, T9i, T9h);
|
|
T9m = T6p + T6q;
|
|
Im[WS(rs, 2)] = -(FMA(KP831469612, T9m, T9l));
|
|
Ip[WS(rs, 13)] = FNMS(KP831469612, T9m, T9l);
|
|
}
|
|
{
|
|
E T6o, T6r, T9j, T9k;
|
|
T6o = FMA(KP923879532, T6f, T6c);
|
|
T6r = T6p - T6q;
|
|
Rm[WS(rs, 10)] = FNMS(KP831469612, T6r, T6o);
|
|
Rp[WS(rs, 5)] = FMA(KP831469612, T6r, T6o);
|
|
T9j = FMA(KP923879532, T9i, T9h);
|
|
T9k = T6m - T6j;
|
|
Im[WS(rs, 10)] = FMS(KP831469612, T9k, T9j);
|
|
Ip[WS(rs, 5)] = FMA(KP831469612, T9k, T9j);
|
|
}
|
|
}
|
|
{
|
|
E T6w, T6Y, T6D, T9w, T9p, T9v, T71, T9q, T6S, T7c, T6W, T78, T6L, T7b, T6V;
|
|
E T75;
|
|
{
|
|
E T6s, T6v, T6Z, T70;
|
|
T6s = T46 - T4b;
|
|
T6v = T6t - T6u;
|
|
T6w = FMA(KP707106781, T6v, T6s);
|
|
T6Y = FNMS(KP707106781, T6v, T6s);
|
|
{
|
|
E T6z, T6C, T9n, T9o;
|
|
T6z = FMA(KP414213562, T6y, T6x);
|
|
T6C = FNMS(KP414213562, T6B, T6A);
|
|
T6D = T6z - T6C;
|
|
T9w = T6z + T6C;
|
|
T9n = T98 + T97;
|
|
T9o = T4q - T4j;
|
|
T9p = FMA(KP707106781, T9o, T9n);
|
|
T9v = FNMS(KP707106781, T9o, T9n);
|
|
}
|
|
T6Z = FNMS(KP414213562, T6x, T6y);
|
|
T70 = FMA(KP414213562, T6A, T6B);
|
|
T71 = T6Z + T70;
|
|
T9q = T70 - T6Z;
|
|
{
|
|
E T6O, T77, T6R, T76, T6N, T6Q;
|
|
T6N = T63 - T62;
|
|
T6O = FNMS(KP707106781, T6N, T6M);
|
|
T77 = FMA(KP707106781, T6N, T6M);
|
|
T6Q = T5S - T5L;
|
|
T6R = FNMS(KP707106781, T6Q, T6P);
|
|
T76 = FMA(KP707106781, T6Q, T6P);
|
|
T6S = FMA(KP668178637, T6R, T6O);
|
|
T7c = FNMS(KP198912367, T76, T77);
|
|
T6W = FNMS(KP668178637, T6O, T6R);
|
|
T78 = FMA(KP198912367, T77, T76);
|
|
}
|
|
{
|
|
E T6H, T74, T6K, T73, T6G, T6J;
|
|
T6G = T5u - T5t;
|
|
T6H = FNMS(KP707106781, T6G, T6F);
|
|
T74 = FMA(KP707106781, T6G, T6F);
|
|
T6J = T5c - T5j;
|
|
T6K = FNMS(KP707106781, T6J, T6I);
|
|
T73 = FMA(KP707106781, T6J, T6I);
|
|
T6L = FMA(KP668178637, T6K, T6H);
|
|
T7b = FNMS(KP198912367, T73, T74);
|
|
T6V = FNMS(KP668178637, T6H, T6K);
|
|
T75 = FMA(KP198912367, T74, T73);
|
|
}
|
|
}
|
|
{
|
|
E T6E, T6T, T9r, T9s;
|
|
T6E = FMA(KP923879532, T6D, T6w);
|
|
T6T = T6L + T6S;
|
|
Rm[WS(rs, 12)] = FNMS(KP831469612, T6T, T6E);
|
|
Rp[WS(rs, 3)] = FMA(KP831469612, T6T, T6E);
|
|
T9r = FMA(KP923879532, T9q, T9p);
|
|
T9s = T6V - T6W;
|
|
Im[WS(rs, 12)] = FMS(KP831469612, T9s, T9r);
|
|
Ip[WS(rs, 3)] = FMA(KP831469612, T9s, T9r);
|
|
}
|
|
{
|
|
E T6U, T6X, T9t, T9u;
|
|
T6U = FNMS(KP923879532, T6D, T6w);
|
|
T6X = T6V + T6W;
|
|
Rm[WS(rs, 4)] = FNMS(KP831469612, T6X, T6U);
|
|
Rp[WS(rs, 11)] = FMA(KP831469612, T6X, T6U);
|
|
T9t = FNMS(KP923879532, T9q, T9p);
|
|
T9u = T6S - T6L;
|
|
Im[WS(rs, 4)] = FMS(KP831469612, T9u, T9t);
|
|
Ip[WS(rs, 11)] = FMA(KP831469612, T9u, T9t);
|
|
}
|
|
{
|
|
E T72, T79, T9x, T9y;
|
|
T72 = FNMS(KP923879532, T71, T6Y);
|
|
T79 = T75 + T78;
|
|
Rm[WS(rs, 8)] = FNMS(KP980785280, T79, T72);
|
|
Rp[WS(rs, 7)] = FMA(KP980785280, T79, T72);
|
|
T9x = FNMS(KP923879532, T9w, T9v);
|
|
T9y = T7c - T7b;
|
|
Im[WS(rs, 8)] = FMS(KP980785280, T9y, T9x);
|
|
Ip[WS(rs, 7)] = FMA(KP980785280, T9y, T9x);
|
|
}
|
|
{
|
|
E T7a, T7d, T9z, T9A;
|
|
T7a = FMA(KP923879532, T71, T6Y);
|
|
T7d = T7b + T7c;
|
|
Rp[WS(rs, 15)] = FNMS(KP980785280, T7d, T7a);
|
|
Rm[0] = FMA(KP980785280, T7d, T7a);
|
|
T9z = FMA(KP923879532, T9w, T9v);
|
|
T9A = T78 - T75;
|
|
Im[0] = FMS(KP980785280, T9A, T9z);
|
|
Ip[WS(rs, 15)] = FMA(KP980785280, T9A, T9z);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
static const tw_instr twinstr[] = {
|
|
{ TW_CEXP, 1, 1 },
|
|
{ TW_CEXP, 1, 3 },
|
|
{ TW_CEXP, 1, 9 },
|
|
{ TW_CEXP, 1, 27 },
|
|
{ TW_NEXT, 1, 0 }
|
|
};
|
|
|
|
static const hc2c_desc desc = { 32, "hc2cf2_32", twinstr, &GENUS, { 236, 98, 252, 0 } };
|
|
|
|
void X(codelet_hc2cf2_32) (planner *p) {
|
|
X(khc2c_register) (p, hc2cf2_32, &desc, HC2C_VIA_RDFT);
|
|
}
|
|
#else
|
|
|
|
/* Generated by: ../../../genfft/gen_hc2c.native -compact -variables 4 -pipeline-latency 4 -twiddle-log3 -precompute-twiddles -n 32 -dit -name hc2cf2_32 -include rdft/scalar/hc2cf.h */
|
|
|
|
/*
|
|
* This function contains 488 FP additions, 280 FP multiplications,
|
|
* (or, 376 additions, 168 multiplications, 112 fused multiply/add),
|
|
* 158 stack variables, 7 constants, and 128 memory accesses
|
|
*/
|
|
#include "rdft/scalar/hc2cf.h"
|
|
|
|
static void hc2cf2_32(R *Rp, R *Ip, R *Rm, R *Im, const R *W, stride rs, INT mb, INT me, INT ms)
|
|
{
|
|
DK(KP195090322, +0.195090322016128267848284868477022240927691618);
|
|
DK(KP980785280, +0.980785280403230449126182236134239036973933731);
|
|
DK(KP555570233, +0.555570233019602224742830813948532874374937191);
|
|
DK(KP831469612, +0.831469612302545237078788377617905756738560812);
|
|
DK(KP382683432, +0.382683432365089771728459984030398866761344562);
|
|
DK(KP923879532, +0.923879532511286756128183189396788286822416626);
|
|
DK(KP707106781, +0.707106781186547524400844362104849039284835938);
|
|
{
|
|
INT m;
|
|
for (m = mb, W = W + ((mb - 1) * 8); m < me; m = m + 1, Rp = Rp + ms, Ip = Ip + ms, Rm = Rm - ms, Im = Im - ms, W = W + 8, MAKE_VOLATILE_STRIDE(128, rs)) {
|
|
E T2, T5, T3, T6, T8, TM, TO, Td, T9, Te, Th, Tl, TD, TH, T1y;
|
|
E T1H, T15, T1A, T11, T1F, T1n, T1p, T2q, T2I, T2u, T2K, T2V, T3b, T2Z, T3d;
|
|
E Tu, Ty, T3l, T3n, T1t, T1v, T2f, T2h, T1a, T1e, T32, T34, T1W, T1Y, T2C;
|
|
E T2E, Tg, TR, Tk, TS, Tm, TV, To, TT, T1M, T21, T1P, T22, T1Q, T25;
|
|
E T1S, T23;
|
|
{
|
|
E Ts, T1d, Tx, T18, Tt, T1c, Tw, T19, TB, T14, TG, TZ, TC, T13, TF;
|
|
E T10;
|
|
{
|
|
E T4, Tc, T7, Tb;
|
|
T2 = W[0];
|
|
T5 = W[1];
|
|
T3 = W[2];
|
|
T6 = W[3];
|
|
T4 = T2 * T3;
|
|
Tc = T5 * T3;
|
|
T7 = T5 * T6;
|
|
Tb = T2 * T6;
|
|
T8 = T4 + T7;
|
|
TM = T4 - T7;
|
|
TO = Tb + Tc;
|
|
Td = Tb - Tc;
|
|
T9 = W[4];
|
|
Ts = T2 * T9;
|
|
T1d = T6 * T9;
|
|
Tx = T5 * T9;
|
|
T18 = T3 * T9;
|
|
Te = W[5];
|
|
Tt = T5 * Te;
|
|
T1c = T3 * Te;
|
|
Tw = T2 * Te;
|
|
T19 = T6 * Te;
|
|
Th = W[6];
|
|
TB = T3 * Th;
|
|
T14 = T5 * Th;
|
|
TG = T6 * Th;
|
|
TZ = T2 * Th;
|
|
Tl = W[7];
|
|
TC = T6 * Tl;
|
|
T13 = T2 * Tl;
|
|
TF = T3 * Tl;
|
|
T10 = T5 * Tl;
|
|
}
|
|
TD = TB + TC;
|
|
TH = TF - TG;
|
|
T1y = TZ + T10;
|
|
T1H = TF + TG;
|
|
T15 = T13 + T14;
|
|
T1A = T13 - T14;
|
|
T11 = TZ - T10;
|
|
T1F = TB - TC;
|
|
T1n = FMA(T9, Th, Te * Tl);
|
|
T1p = FNMS(Te, Th, T9 * Tl);
|
|
{
|
|
E T2o, T2p, T2s, T2t;
|
|
T2o = T8 * Th;
|
|
T2p = Td * Tl;
|
|
T2q = T2o + T2p;
|
|
T2I = T2o - T2p;
|
|
T2s = T8 * Tl;
|
|
T2t = Td * Th;
|
|
T2u = T2s - T2t;
|
|
T2K = T2s + T2t;
|
|
}
|
|
{
|
|
E T2T, T2U, T2X, T2Y;
|
|
T2T = TM * Th;
|
|
T2U = TO * Tl;
|
|
T2V = T2T - T2U;
|
|
T3b = T2T + T2U;
|
|
T2X = TM * Tl;
|
|
T2Y = TO * Th;
|
|
T2Z = T2X + T2Y;
|
|
T3d = T2X - T2Y;
|
|
Tu = Ts + Tt;
|
|
Ty = Tw - Tx;
|
|
T3l = FMA(Tu, Th, Ty * Tl);
|
|
T3n = FNMS(Ty, Th, Tu * Tl);
|
|
}
|
|
T1t = Ts - Tt;
|
|
T1v = Tw + Tx;
|
|
T2f = FMA(T1t, Th, T1v * Tl);
|
|
T2h = FNMS(T1v, Th, T1t * Tl);
|
|
T1a = T18 - T19;
|
|
T1e = T1c + T1d;
|
|
T32 = FMA(T1a, Th, T1e * Tl);
|
|
T34 = FNMS(T1e, Th, T1a * Tl);
|
|
T1W = T18 + T19;
|
|
T1Y = T1c - T1d;
|
|
T2C = FMA(T1W, Th, T1Y * Tl);
|
|
T2E = FNMS(T1Y, Th, T1W * Tl);
|
|
{
|
|
E Ta, Tf, Ti, Tj;
|
|
Ta = T8 * T9;
|
|
Tf = Td * Te;
|
|
Tg = Ta - Tf;
|
|
TR = Ta + Tf;
|
|
Ti = T8 * Te;
|
|
Tj = Td * T9;
|
|
Tk = Ti + Tj;
|
|
TS = Ti - Tj;
|
|
}
|
|
Tm = FMA(Tg, Th, Tk * Tl);
|
|
TV = FNMS(TS, Th, TR * Tl);
|
|
To = FNMS(Tk, Th, Tg * Tl);
|
|
TT = FMA(TR, Th, TS * Tl);
|
|
{
|
|
E T1K, T1L, T1N, T1O;
|
|
T1K = TM * T9;
|
|
T1L = TO * Te;
|
|
T1M = T1K - T1L;
|
|
T21 = T1K + T1L;
|
|
T1N = TM * Te;
|
|
T1O = TO * T9;
|
|
T1P = T1N + T1O;
|
|
T22 = T1N - T1O;
|
|
}
|
|
T1Q = FMA(T1M, Th, T1P * Tl);
|
|
T25 = FNMS(T22, Th, T21 * Tl);
|
|
T1S = FNMS(T1P, Th, T1M * Tl);
|
|
T23 = FMA(T21, Th, T22 * Tl);
|
|
}
|
|
{
|
|
E TL, T6f, T8c, T8q, T3F, T5t, T7I, T7W, T2y, T6B, T6y, T7j, T4k, T5J, T4B;
|
|
E T5G, T3h, T6H, T6O, T7o, T4L, T5N, T52, T5Q, T1i, T7V, T6i, T7D, T3K, T5u;
|
|
E T3P, T5v, T1E, T6n, T6m, T7e, T3W, T5y, T41, T5z, T29, T6p, T6s, T7f, T47;
|
|
E T5B, T4c, T5C, T2R, T6z, T6E, T7k, T4v, T5H, T4E, T5K, T3y, T6P, T6K, T7p;
|
|
E T4W, T5R, T55, T5O;
|
|
{
|
|
E T1, T7G, Tq, T7F, TA, T3C, TJ, T3D, Tn, Tp;
|
|
T1 = Rp[0];
|
|
T7G = Rm[0];
|
|
Tn = Rp[WS(rs, 8)];
|
|
Tp = Rm[WS(rs, 8)];
|
|
Tq = FMA(Tm, Tn, To * Tp);
|
|
T7F = FNMS(To, Tn, Tm * Tp);
|
|
{
|
|
E Tv, Tz, TE, TI;
|
|
Tv = Rp[WS(rs, 4)];
|
|
Tz = Rm[WS(rs, 4)];
|
|
TA = FMA(Tu, Tv, Ty * Tz);
|
|
T3C = FNMS(Ty, Tv, Tu * Tz);
|
|
TE = Rp[WS(rs, 12)];
|
|
TI = Rm[WS(rs, 12)];
|
|
TJ = FMA(TD, TE, TH * TI);
|
|
T3D = FNMS(TH, TE, TD * TI);
|
|
}
|
|
{
|
|
E Tr, TK, T8a, T8b;
|
|
Tr = T1 + Tq;
|
|
TK = TA + TJ;
|
|
TL = Tr + TK;
|
|
T6f = Tr - TK;
|
|
T8a = T7G - T7F;
|
|
T8b = TA - TJ;
|
|
T8c = T8a - T8b;
|
|
T8q = T8b + T8a;
|
|
}
|
|
{
|
|
E T3B, T3E, T7E, T7H;
|
|
T3B = T1 - Tq;
|
|
T3E = T3C - T3D;
|
|
T3F = T3B - T3E;
|
|
T5t = T3B + T3E;
|
|
T7E = T3C + T3D;
|
|
T7H = T7F + T7G;
|
|
T7I = T7E + T7H;
|
|
T7W = T7H - T7E;
|
|
}
|
|
}
|
|
{
|
|
E T2e, T4g, T2w, T4z, T2j, T4h, T2n, T4y;
|
|
{
|
|
E T2c, T2d, T2r, T2v;
|
|
T2c = Ip[0];
|
|
T2d = Im[0];
|
|
T2e = FMA(T2, T2c, T5 * T2d);
|
|
T4g = FNMS(T5, T2c, T2 * T2d);
|
|
T2r = Ip[WS(rs, 12)];
|
|
T2v = Im[WS(rs, 12)];
|
|
T2w = FMA(T2q, T2r, T2u * T2v);
|
|
T4z = FNMS(T2u, T2r, T2q * T2v);
|
|
}
|
|
{
|
|
E T2g, T2i, T2l, T2m;
|
|
T2g = Ip[WS(rs, 8)];
|
|
T2i = Im[WS(rs, 8)];
|
|
T2j = FMA(T2f, T2g, T2h * T2i);
|
|
T4h = FNMS(T2h, T2g, T2f * T2i);
|
|
T2l = Ip[WS(rs, 4)];
|
|
T2m = Im[WS(rs, 4)];
|
|
T2n = FMA(T9, T2l, Te * T2m);
|
|
T4y = FNMS(Te, T2l, T9 * T2m);
|
|
}
|
|
{
|
|
E T2k, T2x, T6w, T6x;
|
|
T2k = T2e + T2j;
|
|
T2x = T2n + T2w;
|
|
T2y = T2k + T2x;
|
|
T6B = T2k - T2x;
|
|
T6w = T4g + T4h;
|
|
T6x = T4y + T4z;
|
|
T6y = T6w - T6x;
|
|
T7j = T6w + T6x;
|
|
}
|
|
{
|
|
E T4i, T4j, T4x, T4A;
|
|
T4i = T4g - T4h;
|
|
T4j = T2n - T2w;
|
|
T4k = T4i + T4j;
|
|
T5J = T4i - T4j;
|
|
T4x = T2e - T2j;
|
|
T4A = T4y - T4z;
|
|
T4B = T4x - T4A;
|
|
T5G = T4x + T4A;
|
|
}
|
|
}
|
|
{
|
|
E T31, T4Y, T3f, T4J, T36, T4Z, T3a, T4I;
|
|
{
|
|
E T2W, T30, T3c, T3e;
|
|
T2W = Ip[WS(rs, 15)];
|
|
T30 = Im[WS(rs, 15)];
|
|
T31 = FMA(T2V, T2W, T2Z * T30);
|
|
T4Y = FNMS(T2Z, T2W, T2V * T30);
|
|
T3c = Ip[WS(rs, 11)];
|
|
T3e = Im[WS(rs, 11)];
|
|
T3f = FMA(T3b, T3c, T3d * T3e);
|
|
T4J = FNMS(T3d, T3c, T3b * T3e);
|
|
}
|
|
{
|
|
E T33, T35, T38, T39;
|
|
T33 = Ip[WS(rs, 7)];
|
|
T35 = Im[WS(rs, 7)];
|
|
T36 = FMA(T32, T33, T34 * T35);
|
|
T4Z = FNMS(T34, T33, T32 * T35);
|
|
T38 = Ip[WS(rs, 3)];
|
|
T39 = Im[WS(rs, 3)];
|
|
T3a = FMA(TR, T38, TS * T39);
|
|
T4I = FNMS(TS, T38, TR * T39);
|
|
}
|
|
{
|
|
E T37, T3g, T6M, T6N;
|
|
T37 = T31 + T36;
|
|
T3g = T3a + T3f;
|
|
T3h = T37 + T3g;
|
|
T6H = T37 - T3g;
|
|
T6M = T4Y + T4Z;
|
|
T6N = T4I + T4J;
|
|
T6O = T6M - T6N;
|
|
T7o = T6M + T6N;
|
|
}
|
|
{
|
|
E T4H, T4K, T50, T51;
|
|
T4H = T31 - T36;
|
|
T4K = T4I - T4J;
|
|
T4L = T4H - T4K;
|
|
T5N = T4H + T4K;
|
|
T50 = T4Y - T4Z;
|
|
T51 = T3a - T3f;
|
|
T52 = T50 + T51;
|
|
T5Q = T50 - T51;
|
|
}
|
|
}
|
|
{
|
|
E TQ, T3G, T1g, T3N, TX, T3H, T17, T3M;
|
|
{
|
|
E TN, TP, T1b, T1f;
|
|
TN = Rp[WS(rs, 2)];
|
|
TP = Rm[WS(rs, 2)];
|
|
TQ = FMA(TM, TN, TO * TP);
|
|
T3G = FNMS(TO, TN, TM * TP);
|
|
T1b = Rp[WS(rs, 6)];
|
|
T1f = Rm[WS(rs, 6)];
|
|
T1g = FMA(T1a, T1b, T1e * T1f);
|
|
T3N = FNMS(T1e, T1b, T1a * T1f);
|
|
}
|
|
{
|
|
E TU, TW, T12, T16;
|
|
TU = Rp[WS(rs, 10)];
|
|
TW = Rm[WS(rs, 10)];
|
|
TX = FMA(TT, TU, TV * TW);
|
|
T3H = FNMS(TV, TU, TT * TW);
|
|
T12 = Rp[WS(rs, 14)];
|
|
T16 = Rm[WS(rs, 14)];
|
|
T17 = FMA(T11, T12, T15 * T16);
|
|
T3M = FNMS(T15, T12, T11 * T16);
|
|
}
|
|
{
|
|
E TY, T1h, T6g, T6h;
|
|
TY = TQ + TX;
|
|
T1h = T17 + T1g;
|
|
T1i = TY + T1h;
|
|
T7V = T1h - TY;
|
|
T6g = T3G + T3H;
|
|
T6h = T3M + T3N;
|
|
T6i = T6g - T6h;
|
|
T7D = T6g + T6h;
|
|
}
|
|
{
|
|
E T3I, T3J, T3L, T3O;
|
|
T3I = T3G - T3H;
|
|
T3J = TQ - TX;
|
|
T3K = T3I - T3J;
|
|
T5u = T3J + T3I;
|
|
T3L = T17 - T1g;
|
|
T3O = T3M - T3N;
|
|
T3P = T3L + T3O;
|
|
T5v = T3L - T3O;
|
|
}
|
|
}
|
|
{
|
|
E T1m, T3S, T1C, T3Z, T1r, T3T, T1x, T3Y;
|
|
{
|
|
E T1k, T1l, T1z, T1B;
|
|
T1k = Rp[WS(rs, 1)];
|
|
T1l = Rm[WS(rs, 1)];
|
|
T1m = FMA(T8, T1k, Td * T1l);
|
|
T3S = FNMS(Td, T1k, T8 * T1l);
|
|
T1z = Rp[WS(rs, 13)];
|
|
T1B = Rm[WS(rs, 13)];
|
|
T1C = FMA(T1y, T1z, T1A * T1B);
|
|
T3Z = FNMS(T1A, T1z, T1y * T1B);
|
|
}
|
|
{
|
|
E T1o, T1q, T1u, T1w;
|
|
T1o = Rp[WS(rs, 9)];
|
|
T1q = Rm[WS(rs, 9)];
|
|
T1r = FMA(T1n, T1o, T1p * T1q);
|
|
T3T = FNMS(T1p, T1o, T1n * T1q);
|
|
T1u = Rp[WS(rs, 5)];
|
|
T1w = Rm[WS(rs, 5)];
|
|
T1x = FMA(T1t, T1u, T1v * T1w);
|
|
T3Y = FNMS(T1v, T1u, T1t * T1w);
|
|
}
|
|
{
|
|
E T1s, T1D, T6k, T6l;
|
|
T1s = T1m + T1r;
|
|
T1D = T1x + T1C;
|
|
T1E = T1s + T1D;
|
|
T6n = T1s - T1D;
|
|
T6k = T3S + T3T;
|
|
T6l = T3Y + T3Z;
|
|
T6m = T6k - T6l;
|
|
T7e = T6k + T6l;
|
|
}
|
|
{
|
|
E T3U, T3V, T3X, T40;
|
|
T3U = T3S - T3T;
|
|
T3V = T1x - T1C;
|
|
T3W = T3U + T3V;
|
|
T5y = T3U - T3V;
|
|
T3X = T1m - T1r;
|
|
T40 = T3Y - T3Z;
|
|
T41 = T3X - T40;
|
|
T5z = T3X + T40;
|
|
}
|
|
}
|
|
{
|
|
E T1J, T43, T27, T4a, T1U, T44, T20, T49;
|
|
{
|
|
E T1G, T1I, T24, T26;
|
|
T1G = Rp[WS(rs, 15)];
|
|
T1I = Rm[WS(rs, 15)];
|
|
T1J = FMA(T1F, T1G, T1H * T1I);
|
|
T43 = FNMS(T1H, T1G, T1F * T1I);
|
|
T24 = Rp[WS(rs, 11)];
|
|
T26 = Rm[WS(rs, 11)];
|
|
T27 = FMA(T23, T24, T25 * T26);
|
|
T4a = FNMS(T25, T24, T23 * T26);
|
|
}
|
|
{
|
|
E T1R, T1T, T1X, T1Z;
|
|
T1R = Rp[WS(rs, 7)];
|
|
T1T = Rm[WS(rs, 7)];
|
|
T1U = FMA(T1Q, T1R, T1S * T1T);
|
|
T44 = FNMS(T1S, T1R, T1Q * T1T);
|
|
T1X = Rp[WS(rs, 3)];
|
|
T1Z = Rm[WS(rs, 3)];
|
|
T20 = FMA(T1W, T1X, T1Y * T1Z);
|
|
T49 = FNMS(T1Y, T1X, T1W * T1Z);
|
|
}
|
|
{
|
|
E T1V, T28, T6q, T6r;
|
|
T1V = T1J + T1U;
|
|
T28 = T20 + T27;
|
|
T29 = T1V + T28;
|
|
T6p = T1V - T28;
|
|
T6q = T43 + T44;
|
|
T6r = T49 + T4a;
|
|
T6s = T6q - T6r;
|
|
T7f = T6q + T6r;
|
|
}
|
|
{
|
|
E T45, T46, T48, T4b;
|
|
T45 = T43 - T44;
|
|
T46 = T20 - T27;
|
|
T47 = T45 + T46;
|
|
T5B = T45 - T46;
|
|
T48 = T1J - T1U;
|
|
T4b = T49 - T4a;
|
|
T4c = T48 - T4b;
|
|
T5C = T48 + T4b;
|
|
}
|
|
}
|
|
{
|
|
E T2B, T4r, T2G, T4s, T4q, T4t, T2M, T4m, T2P, T4n, T4l, T4o;
|
|
{
|
|
E T2z, T2A, T2D, T2F;
|
|
T2z = Ip[WS(rs, 2)];
|
|
T2A = Im[WS(rs, 2)];
|
|
T2B = FMA(T21, T2z, T22 * T2A);
|
|
T4r = FNMS(T22, T2z, T21 * T2A);
|
|
T2D = Ip[WS(rs, 10)];
|
|
T2F = Im[WS(rs, 10)];
|
|
T2G = FMA(T2C, T2D, T2E * T2F);
|
|
T4s = FNMS(T2E, T2D, T2C * T2F);
|
|
}
|
|
T4q = T2B - T2G;
|
|
T4t = T4r - T4s;
|
|
{
|
|
E T2J, T2L, T2N, T2O;
|
|
T2J = Ip[WS(rs, 14)];
|
|
T2L = Im[WS(rs, 14)];
|
|
T2M = FMA(T2I, T2J, T2K * T2L);
|
|
T4m = FNMS(T2K, T2J, T2I * T2L);
|
|
T2N = Ip[WS(rs, 6)];
|
|
T2O = Im[WS(rs, 6)];
|
|
T2P = FMA(T1M, T2N, T1P * T2O);
|
|
T4n = FNMS(T1P, T2N, T1M * T2O);
|
|
}
|
|
T4l = T2M - T2P;
|
|
T4o = T4m - T4n;
|
|
{
|
|
E T2H, T2Q, T6C, T6D;
|
|
T2H = T2B + T2G;
|
|
T2Q = T2M + T2P;
|
|
T2R = T2H + T2Q;
|
|
T6z = T2Q - T2H;
|
|
T6C = T4r + T4s;
|
|
T6D = T4m + T4n;
|
|
T6E = T6C - T6D;
|
|
T7k = T6C + T6D;
|
|
}
|
|
{
|
|
E T4p, T4u, T4C, T4D;
|
|
T4p = T4l - T4o;
|
|
T4u = T4q + T4t;
|
|
T4v = KP707106781 * (T4p - T4u);
|
|
T5H = KP707106781 * (T4u + T4p);
|
|
T4C = T4t - T4q;
|
|
T4D = T4l + T4o;
|
|
T4E = KP707106781 * (T4C - T4D);
|
|
T5K = KP707106781 * (T4C + T4D);
|
|
}
|
|
}
|
|
{
|
|
E T3k, T4M, T3p, T4N, T4O, T4P, T3t, T4S, T3w, T4T, T4R, T4U;
|
|
{
|
|
E T3i, T3j, T3m, T3o;
|
|
T3i = Ip[WS(rs, 1)];
|
|
T3j = Im[WS(rs, 1)];
|
|
T3k = FMA(T3, T3i, T6 * T3j);
|
|
T4M = FNMS(T6, T3i, T3 * T3j);
|
|
T3m = Ip[WS(rs, 9)];
|
|
T3o = Im[WS(rs, 9)];
|
|
T3p = FMA(T3l, T3m, T3n * T3o);
|
|
T4N = FNMS(T3n, T3m, T3l * T3o);
|
|
}
|
|
T4O = T4M - T4N;
|
|
T4P = T3k - T3p;
|
|
{
|
|
E T3r, T3s, T3u, T3v;
|
|
T3r = Ip[WS(rs, 13)];
|
|
T3s = Im[WS(rs, 13)];
|
|
T3t = FMA(Th, T3r, Tl * T3s);
|
|
T4S = FNMS(Tl, T3r, Th * T3s);
|
|
T3u = Ip[WS(rs, 5)];
|
|
T3v = Im[WS(rs, 5)];
|
|
T3w = FMA(Tg, T3u, Tk * T3v);
|
|
T4T = FNMS(Tk, T3u, Tg * T3v);
|
|
}
|
|
T4R = T3t - T3w;
|
|
T4U = T4S - T4T;
|
|
{
|
|
E T3q, T3x, T6I, T6J;
|
|
T3q = T3k + T3p;
|
|
T3x = T3t + T3w;
|
|
T3y = T3q + T3x;
|
|
T6P = T3x - T3q;
|
|
T6I = T4M + T4N;
|
|
T6J = T4S + T4T;
|
|
T6K = T6I - T6J;
|
|
T7p = T6I + T6J;
|
|
}
|
|
{
|
|
E T4Q, T4V, T53, T54;
|
|
T4Q = T4O - T4P;
|
|
T4V = T4R + T4U;
|
|
T4W = KP707106781 * (T4Q - T4V);
|
|
T5R = KP707106781 * (T4Q + T4V);
|
|
T53 = T4R - T4U;
|
|
T54 = T4P + T4O;
|
|
T55 = KP707106781 * (T53 - T54);
|
|
T5O = KP707106781 * (T54 + T53);
|
|
}
|
|
}
|
|
{
|
|
E T2b, T7x, T7K, T7M, T3A, T7L, T7A, T7B;
|
|
{
|
|
E T1j, T2a, T7C, T7J;
|
|
T1j = TL + T1i;
|
|
T2a = T1E + T29;
|
|
T2b = T1j + T2a;
|
|
T7x = T1j - T2a;
|
|
T7C = T7e + T7f;
|
|
T7J = T7D + T7I;
|
|
T7K = T7C + T7J;
|
|
T7M = T7J - T7C;
|
|
}
|
|
{
|
|
E T2S, T3z, T7y, T7z;
|
|
T2S = T2y + T2R;
|
|
T3z = T3h + T3y;
|
|
T3A = T2S + T3z;
|
|
T7L = T3z - T2S;
|
|
T7y = T7j + T7k;
|
|
T7z = T7o + T7p;
|
|
T7A = T7y - T7z;
|
|
T7B = T7y + T7z;
|
|
}
|
|
Rm[WS(rs, 15)] = T2b - T3A;
|
|
Im[WS(rs, 15)] = T7B - T7K;
|
|
Rp[0] = T2b + T3A;
|
|
Ip[0] = T7B + T7K;
|
|
Rm[WS(rs, 7)] = T7x - T7A;
|
|
Im[WS(rs, 7)] = T7L - T7M;
|
|
Rp[WS(rs, 8)] = T7x + T7A;
|
|
Ip[WS(rs, 8)] = T7L + T7M;
|
|
}
|
|
{
|
|
E T7h, T7t, T7Q, T7S, T7m, T7u, T7r, T7v;
|
|
{
|
|
E T7d, T7g, T7O, T7P;
|
|
T7d = TL - T1i;
|
|
T7g = T7e - T7f;
|
|
T7h = T7d + T7g;
|
|
T7t = T7d - T7g;
|
|
T7O = T29 - T1E;
|
|
T7P = T7I - T7D;
|
|
T7Q = T7O + T7P;
|
|
T7S = T7P - T7O;
|
|
}
|
|
{
|
|
E T7i, T7l, T7n, T7q;
|
|
T7i = T2y - T2R;
|
|
T7l = T7j - T7k;
|
|
T7m = T7i + T7l;
|
|
T7u = T7l - T7i;
|
|
T7n = T3h - T3y;
|
|
T7q = T7o - T7p;
|
|
T7r = T7n - T7q;
|
|
T7v = T7n + T7q;
|
|
}
|
|
{
|
|
E T7s, T7N, T7w, T7R;
|
|
T7s = KP707106781 * (T7m + T7r);
|
|
Rm[WS(rs, 11)] = T7h - T7s;
|
|
Rp[WS(rs, 4)] = T7h + T7s;
|
|
T7N = KP707106781 * (T7u + T7v);
|
|
Im[WS(rs, 11)] = T7N - T7Q;
|
|
Ip[WS(rs, 4)] = T7N + T7Q;
|
|
T7w = KP707106781 * (T7u - T7v);
|
|
Rm[WS(rs, 3)] = T7t - T7w;
|
|
Rp[WS(rs, 12)] = T7t + T7w;
|
|
T7R = KP707106781 * (T7r - T7m);
|
|
Im[WS(rs, 3)] = T7R - T7S;
|
|
Ip[WS(rs, 12)] = T7R + T7S;
|
|
}
|
|
}
|
|
{
|
|
E T6j, T7X, T83, T6X, T6u, T7U, T77, T7b, T70, T82, T6G, T6U, T74, T7a, T6R;
|
|
E T6V;
|
|
{
|
|
E T6o, T6t, T6A, T6F;
|
|
T6j = T6f - T6i;
|
|
T7X = T7V + T7W;
|
|
T83 = T7W - T7V;
|
|
T6X = T6f + T6i;
|
|
T6o = T6m - T6n;
|
|
T6t = T6p + T6s;
|
|
T6u = KP707106781 * (T6o - T6t);
|
|
T7U = KP707106781 * (T6o + T6t);
|
|
{
|
|
E T75, T76, T6Y, T6Z;
|
|
T75 = T6H + T6K;
|
|
T76 = T6O + T6P;
|
|
T77 = FNMS(KP382683432, T76, KP923879532 * T75);
|
|
T7b = FMA(KP923879532, T76, KP382683432 * T75);
|
|
T6Y = T6n + T6m;
|
|
T6Z = T6p - T6s;
|
|
T70 = KP707106781 * (T6Y + T6Z);
|
|
T82 = KP707106781 * (T6Z - T6Y);
|
|
}
|
|
T6A = T6y - T6z;
|
|
T6F = T6B - T6E;
|
|
T6G = FMA(KP923879532, T6A, KP382683432 * T6F);
|
|
T6U = FNMS(KP923879532, T6F, KP382683432 * T6A);
|
|
{
|
|
E T72, T73, T6L, T6Q;
|
|
T72 = T6y + T6z;
|
|
T73 = T6B + T6E;
|
|
T74 = FMA(KP382683432, T72, KP923879532 * T73);
|
|
T7a = FNMS(KP382683432, T73, KP923879532 * T72);
|
|
T6L = T6H - T6K;
|
|
T6Q = T6O - T6P;
|
|
T6R = FNMS(KP923879532, T6Q, KP382683432 * T6L);
|
|
T6V = FMA(KP382683432, T6Q, KP923879532 * T6L);
|
|
}
|
|
}
|
|
{
|
|
E T6v, T6S, T81, T84;
|
|
T6v = T6j + T6u;
|
|
T6S = T6G + T6R;
|
|
Rm[WS(rs, 9)] = T6v - T6S;
|
|
Rp[WS(rs, 6)] = T6v + T6S;
|
|
T81 = T6U + T6V;
|
|
T84 = T82 + T83;
|
|
Im[WS(rs, 9)] = T81 - T84;
|
|
Ip[WS(rs, 6)] = T81 + T84;
|
|
}
|
|
{
|
|
E T6T, T6W, T85, T86;
|
|
T6T = T6j - T6u;
|
|
T6W = T6U - T6V;
|
|
Rm[WS(rs, 1)] = T6T - T6W;
|
|
Rp[WS(rs, 14)] = T6T + T6W;
|
|
T85 = T6R - T6G;
|
|
T86 = T83 - T82;
|
|
Im[WS(rs, 1)] = T85 - T86;
|
|
Ip[WS(rs, 14)] = T85 + T86;
|
|
}
|
|
{
|
|
E T71, T78, T7T, T7Y;
|
|
T71 = T6X + T70;
|
|
T78 = T74 + T77;
|
|
Rm[WS(rs, 13)] = T71 - T78;
|
|
Rp[WS(rs, 2)] = T71 + T78;
|
|
T7T = T7a + T7b;
|
|
T7Y = T7U + T7X;
|
|
Im[WS(rs, 13)] = T7T - T7Y;
|
|
Ip[WS(rs, 2)] = T7T + T7Y;
|
|
}
|
|
{
|
|
E T79, T7c, T7Z, T80;
|
|
T79 = T6X - T70;
|
|
T7c = T7a - T7b;
|
|
Rm[WS(rs, 5)] = T79 - T7c;
|
|
Rp[WS(rs, 10)] = T79 + T7c;
|
|
T7Z = T77 - T74;
|
|
T80 = T7X - T7U;
|
|
Im[WS(rs, 5)] = T7Z - T80;
|
|
Ip[WS(rs, 10)] = T7Z + T80;
|
|
}
|
|
}
|
|
{
|
|
E T3R, T5d, T8r, T8x, T4e, T8o, T5n, T5r, T4G, T5a, T5g, T8w, T5k, T5q, T57;
|
|
E T5b, T3Q, T8p;
|
|
T3Q = KP707106781 * (T3K - T3P);
|
|
T3R = T3F - T3Q;
|
|
T5d = T3F + T3Q;
|
|
T8p = KP707106781 * (T5v - T5u);
|
|
T8r = T8p + T8q;
|
|
T8x = T8q - T8p;
|
|
{
|
|
E T42, T4d, T5l, T5m;
|
|
T42 = FNMS(KP923879532, T41, KP382683432 * T3W);
|
|
T4d = FMA(KP382683432, T47, KP923879532 * T4c);
|
|
T4e = T42 - T4d;
|
|
T8o = T42 + T4d;
|
|
T5l = T4L + T4W;
|
|
T5m = T52 + T55;
|
|
T5n = FNMS(KP555570233, T5m, KP831469612 * T5l);
|
|
T5r = FMA(KP831469612, T5m, KP555570233 * T5l);
|
|
}
|
|
{
|
|
E T4w, T4F, T5e, T5f;
|
|
T4w = T4k - T4v;
|
|
T4F = T4B - T4E;
|
|
T4G = FMA(KP980785280, T4w, KP195090322 * T4F);
|
|
T5a = FNMS(KP980785280, T4F, KP195090322 * T4w);
|
|
T5e = FMA(KP923879532, T3W, KP382683432 * T41);
|
|
T5f = FNMS(KP923879532, T47, KP382683432 * T4c);
|
|
T5g = T5e + T5f;
|
|
T8w = T5f - T5e;
|
|
}
|
|
{
|
|
E T5i, T5j, T4X, T56;
|
|
T5i = T4k + T4v;
|
|
T5j = T4B + T4E;
|
|
T5k = FMA(KP555570233, T5i, KP831469612 * T5j);
|
|
T5q = FNMS(KP555570233, T5j, KP831469612 * T5i);
|
|
T4X = T4L - T4W;
|
|
T56 = T52 - T55;
|
|
T57 = FNMS(KP980785280, T56, KP195090322 * T4X);
|
|
T5b = FMA(KP195090322, T56, KP980785280 * T4X);
|
|
}
|
|
{
|
|
E T4f, T58, T8v, T8y;
|
|
T4f = T3R + T4e;
|
|
T58 = T4G + T57;
|
|
Rm[WS(rs, 8)] = T4f - T58;
|
|
Rp[WS(rs, 7)] = T4f + T58;
|
|
T8v = T5a + T5b;
|
|
T8y = T8w + T8x;
|
|
Im[WS(rs, 8)] = T8v - T8y;
|
|
Ip[WS(rs, 7)] = T8v + T8y;
|
|
}
|
|
{
|
|
E T59, T5c, T8z, T8A;
|
|
T59 = T3R - T4e;
|
|
T5c = T5a - T5b;
|
|
Rm[0] = T59 - T5c;
|
|
Rp[WS(rs, 15)] = T59 + T5c;
|
|
T8z = T57 - T4G;
|
|
T8A = T8x - T8w;
|
|
Im[0] = T8z - T8A;
|
|
Ip[WS(rs, 15)] = T8z + T8A;
|
|
}
|
|
{
|
|
E T5h, T5o, T8n, T8s;
|
|
T5h = T5d + T5g;
|
|
T5o = T5k + T5n;
|
|
Rm[WS(rs, 12)] = T5h - T5o;
|
|
Rp[WS(rs, 3)] = T5h + T5o;
|
|
T8n = T5q + T5r;
|
|
T8s = T8o + T8r;
|
|
Im[WS(rs, 12)] = T8n - T8s;
|
|
Ip[WS(rs, 3)] = T8n + T8s;
|
|
}
|
|
{
|
|
E T5p, T5s, T8t, T8u;
|
|
T5p = T5d - T5g;
|
|
T5s = T5q - T5r;
|
|
Rm[WS(rs, 4)] = T5p - T5s;
|
|
Rp[WS(rs, 11)] = T5p + T5s;
|
|
T8t = T5n - T5k;
|
|
T8u = T8r - T8o;
|
|
Im[WS(rs, 4)] = T8t - T8u;
|
|
Ip[WS(rs, 11)] = T8t + T8u;
|
|
}
|
|
}
|
|
{
|
|
E T5x, T5Z, T8d, T8j, T5E, T88, T69, T6d, T5M, T5W, T62, T8i, T66, T6c, T5T;
|
|
E T5X, T5w, T89;
|
|
T5w = KP707106781 * (T5u + T5v);
|
|
T5x = T5t - T5w;
|
|
T5Z = T5t + T5w;
|
|
T89 = KP707106781 * (T3K + T3P);
|
|
T8d = T89 + T8c;
|
|
T8j = T8c - T89;
|
|
{
|
|
E T5A, T5D, T67, T68;
|
|
T5A = FNMS(KP382683432, T5z, KP923879532 * T5y);
|
|
T5D = FMA(KP923879532, T5B, KP382683432 * T5C);
|
|
T5E = T5A - T5D;
|
|
T88 = T5A + T5D;
|
|
T67 = T5N + T5O;
|
|
T68 = T5Q + T5R;
|
|
T69 = FNMS(KP195090322, T68, KP980785280 * T67);
|
|
T6d = FMA(KP195090322, T67, KP980785280 * T68);
|
|
}
|
|
{
|
|
E T5I, T5L, T60, T61;
|
|
T5I = T5G - T5H;
|
|
T5L = T5J - T5K;
|
|
T5M = FMA(KP555570233, T5I, KP831469612 * T5L);
|
|
T5W = FNMS(KP831469612, T5I, KP555570233 * T5L);
|
|
T60 = FMA(KP382683432, T5y, KP923879532 * T5z);
|
|
T61 = FNMS(KP382683432, T5B, KP923879532 * T5C);
|
|
T62 = T60 + T61;
|
|
T8i = T61 - T60;
|
|
}
|
|
{
|
|
E T64, T65, T5P, T5S;
|
|
T64 = T5G + T5H;
|
|
T65 = T5J + T5K;
|
|
T66 = FMA(KP980785280, T64, KP195090322 * T65);
|
|
T6c = FNMS(KP195090322, T64, KP980785280 * T65);
|
|
T5P = T5N - T5O;
|
|
T5S = T5Q - T5R;
|
|
T5T = FNMS(KP831469612, T5S, KP555570233 * T5P);
|
|
T5X = FMA(KP831469612, T5P, KP555570233 * T5S);
|
|
}
|
|
{
|
|
E T5F, T5U, T8h, T8k;
|
|
T5F = T5x + T5E;
|
|
T5U = T5M + T5T;
|
|
Rm[WS(rs, 10)] = T5F - T5U;
|
|
Rp[WS(rs, 5)] = T5F + T5U;
|
|
T8h = T5W + T5X;
|
|
T8k = T8i + T8j;
|
|
Im[WS(rs, 10)] = T8h - T8k;
|
|
Ip[WS(rs, 5)] = T8h + T8k;
|
|
}
|
|
{
|
|
E T5V, T5Y, T8l, T8m;
|
|
T5V = T5x - T5E;
|
|
T5Y = T5W - T5X;
|
|
Rm[WS(rs, 2)] = T5V - T5Y;
|
|
Rp[WS(rs, 13)] = T5V + T5Y;
|
|
T8l = T5T - T5M;
|
|
T8m = T8j - T8i;
|
|
Im[WS(rs, 2)] = T8l - T8m;
|
|
Ip[WS(rs, 13)] = T8l + T8m;
|
|
}
|
|
{
|
|
E T63, T6a, T87, T8e;
|
|
T63 = T5Z + T62;
|
|
T6a = T66 + T69;
|
|
Rm[WS(rs, 14)] = T63 - T6a;
|
|
Rp[WS(rs, 1)] = T63 + T6a;
|
|
T87 = T6c + T6d;
|
|
T8e = T88 + T8d;
|
|
Im[WS(rs, 14)] = T87 - T8e;
|
|
Ip[WS(rs, 1)] = T87 + T8e;
|
|
}
|
|
{
|
|
E T6b, T6e, T8f, T8g;
|
|
T6b = T5Z - T62;
|
|
T6e = T6c - T6d;
|
|
Rm[WS(rs, 6)] = T6b - T6e;
|
|
Rp[WS(rs, 9)] = T6b + T6e;
|
|
T8f = T69 - T66;
|
|
T8g = T8d - T88;
|
|
Im[WS(rs, 6)] = T8f - T8g;
|
|
Ip[WS(rs, 9)] = T8f + T8g;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
static const tw_instr twinstr[] = {
|
|
{ TW_CEXP, 1, 1 },
|
|
{ TW_CEXP, 1, 3 },
|
|
{ TW_CEXP, 1, 9 },
|
|
{ TW_CEXP, 1, 27 },
|
|
{ TW_NEXT, 1, 0 }
|
|
};
|
|
|
|
static const hc2c_desc desc = { 32, "hc2cf2_32", twinstr, &GENUS, { 376, 168, 112, 0 } };
|
|
|
|
void X(codelet_hc2cf2_32) (planner *p) {
|
|
X(khc2c_register) (p, hc2cf2_32, &desc, HC2C_VIA_RDFT);
|
|
}
|
|
#endif
|