annotate src/fftw-3.3.3/dft/simd/common/n1fv_7.c @ 165:7e6e71a29886

Update build for AUDIO_COMPONENT_FIX
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 30 Oct 2019 12:40:34 +0000
parents 89f5e221ed7b
children
rev   line source
cannam@95 1 /*
cannam@95 2 * Copyright (c) 2003, 2007-11 Matteo Frigo
cannam@95 3 * Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
cannam@95 4 *
cannam@95 5 * This program is free software; you can redistribute it and/or modify
cannam@95 6 * it under the terms of the GNU General Public License as published by
cannam@95 7 * the Free Software Foundation; either version 2 of the License, or
cannam@95 8 * (at your option) any later version.
cannam@95 9 *
cannam@95 10 * This program is distributed in the hope that it will be useful,
cannam@95 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@95 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@95 13 * GNU General Public License for more details.
cannam@95 14 *
cannam@95 15 * You should have received a copy of the GNU General Public License
cannam@95 16 * along with this program; if not, write to the Free Software
cannam@95 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
cannam@95 18 *
cannam@95 19 */
cannam@95 20
cannam@95 21 /* This file was automatically generated --- DO NOT EDIT */
cannam@95 22 /* Generated on Sun Nov 25 07:36:52 EST 2012 */
cannam@95 23
cannam@95 24 #include "codelet-dft.h"
cannam@95 25
cannam@95 26 #ifdef HAVE_FMA
cannam@95 27
cannam@95 28 /* Generated by: ../../../genfft/gen_notw_c.native -fma -reorder-insns -schedule-for-pipeline -simd -compact -variables 4 -pipeline-latency 8 -n 7 -name n1fv_7 -include n1f.h */
cannam@95 29
cannam@95 30 /*
cannam@95 31 * This function contains 30 FP additions, 24 FP multiplications,
cannam@95 32 * (or, 9 additions, 3 multiplications, 21 fused multiply/add),
cannam@95 33 * 37 stack variables, 6 constants, and 14 memory accesses
cannam@95 34 */
cannam@95 35 #include "n1f.h"
cannam@95 36
cannam@95 37 static void n1fv_7(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs)
cannam@95 38 {
cannam@95 39 DVK(KP900968867, +0.900968867902419126236102319507445051165919162);
cannam@95 40 DVK(KP692021471, +0.692021471630095869627814897002069140197260599);
cannam@95 41 DVK(KP801937735, +0.801937735804838252472204639014890102331838324);
cannam@95 42 DVK(KP974927912, +0.974927912181823607018131682993931217232785801);
cannam@95 43 DVK(KP356895867, +0.356895867892209443894399510021300583399127187);
cannam@95 44 DVK(KP554958132, +0.554958132087371191422194871006410481067288862);
cannam@95 45 {
cannam@95 46 INT i;
cannam@95 47 const R *xi;
cannam@95 48 R *xo;
cannam@95 49 xi = ri;
cannam@95 50 xo = ro;
cannam@95 51 for (i = v; i > 0; i = i - VL, xi = xi + (VL * ivs), xo = xo + (VL * ovs), MAKE_VOLATILE_STRIDE(14, is), MAKE_VOLATILE_STRIDE(14, os)) {
cannam@95 52 V T1, T2, T3, T8, T9, T5, T6;
cannam@95 53 T1 = LD(&(xi[0]), ivs, &(xi[0]));
cannam@95 54 T2 = LD(&(xi[WS(is, 1)]), ivs, &(xi[WS(is, 1)]));
cannam@95 55 T3 = LD(&(xi[WS(is, 6)]), ivs, &(xi[0]));
cannam@95 56 T8 = LD(&(xi[WS(is, 3)]), ivs, &(xi[WS(is, 1)]));
cannam@95 57 T9 = LD(&(xi[WS(is, 4)]), ivs, &(xi[0]));
cannam@95 58 T5 = LD(&(xi[WS(is, 2)]), ivs, &(xi[0]));
cannam@95 59 T6 = LD(&(xi[WS(is, 5)]), ivs, &(xi[WS(is, 1)]));
cannam@95 60 {
cannam@95 61 V Te, T4, Tf, Ta, Tg, T7;
cannam@95 62 Te = VSUB(T3, T2);
cannam@95 63 T4 = VADD(T2, T3);
cannam@95 64 Tf = VSUB(T9, T8);
cannam@95 65 Ta = VADD(T8, T9);
cannam@95 66 Tg = VSUB(T6, T5);
cannam@95 67 T7 = VADD(T5, T6);
cannam@95 68 {
cannam@95 69 V Tm, Tb, Tr, Th, Tj, To;
cannam@95 70 Tm = VFMA(LDK(KP554958132), Tf, Te);
cannam@95 71 Tb = VFNMS(LDK(KP356895867), T4, Ta);
cannam@95 72 Tr = VFNMS(LDK(KP554958132), Te, Tg);
cannam@95 73 Th = VFMA(LDK(KP554958132), Tg, Tf);
cannam@95 74 ST(&(xo[0]), VADD(T1, VADD(T4, VADD(T7, Ta))), ovs, &(xo[0]));
cannam@95 75 Tj = VFNMS(LDK(KP356895867), T7, T4);
cannam@95 76 To = VFNMS(LDK(KP356895867), Ta, T7);
cannam@95 77 {
cannam@95 78 V Tn, Tc, Ts, Ti;
cannam@95 79 Tn = VMUL(LDK(KP974927912), VFMA(LDK(KP801937735), Tm, Tg));
cannam@95 80 Tc = VFNMS(LDK(KP692021471), Tb, T7);
cannam@95 81 Ts = VMUL(LDK(KP974927912), VFNMS(LDK(KP801937735), Tr, Tf));
cannam@95 82 Ti = VMUL(LDK(KP974927912), VFNMS(LDK(KP801937735), Th, Te));
cannam@95 83 {
cannam@95 84 V Tk, Tp, Td, Tl, Tq;
cannam@95 85 Tk = VFNMS(LDK(KP692021471), Tj, Ta);
cannam@95 86 Tp = VFNMS(LDK(KP692021471), To, T4);
cannam@95 87 Td = VFNMS(LDK(KP900968867), Tc, T1);
cannam@95 88 Tl = VFNMS(LDK(KP900968867), Tk, T1);
cannam@95 89 Tq = VFNMS(LDK(KP900968867), Tp, T1);
cannam@95 90 ST(&(xo[WS(os, 2)]), VFMAI(Ti, Td), ovs, &(xo[0]));
cannam@95 91 ST(&(xo[WS(os, 5)]), VFNMSI(Ti, Td), ovs, &(xo[WS(os, 1)]));
cannam@95 92 ST(&(xo[WS(os, 1)]), VFMAI(Tn, Tl), ovs, &(xo[WS(os, 1)]));
cannam@95 93 ST(&(xo[WS(os, 6)]), VFNMSI(Tn, Tl), ovs, &(xo[0]));
cannam@95 94 ST(&(xo[WS(os, 3)]), VFMAI(Ts, Tq), ovs, &(xo[WS(os, 1)]));
cannam@95 95 ST(&(xo[WS(os, 4)]), VFNMSI(Ts, Tq), ovs, &(xo[0]));
cannam@95 96 }
cannam@95 97 }
cannam@95 98 }
cannam@95 99 }
cannam@95 100 }
cannam@95 101 }
cannam@95 102 VLEAVE();
cannam@95 103 }
cannam@95 104
cannam@95 105 static const kdft_desc desc = { 7, XSIMD_STRING("n1fv_7"), {9, 3, 21, 0}, &GENUS, 0, 0, 0, 0 };
cannam@95 106
cannam@95 107 void XSIMD(codelet_n1fv_7) (planner *p) {
cannam@95 108 X(kdft_register) (p, n1fv_7, &desc);
cannam@95 109 }
cannam@95 110
cannam@95 111 #else /* HAVE_FMA */
cannam@95 112
cannam@95 113 /* Generated by: ../../../genfft/gen_notw_c.native -simd -compact -variables 4 -pipeline-latency 8 -n 7 -name n1fv_7 -include n1f.h */
cannam@95 114
cannam@95 115 /*
cannam@95 116 * This function contains 30 FP additions, 18 FP multiplications,
cannam@95 117 * (or, 18 additions, 6 multiplications, 12 fused multiply/add),
cannam@95 118 * 24 stack variables, 6 constants, and 14 memory accesses
cannam@95 119 */
cannam@95 120 #include "n1f.h"
cannam@95 121
cannam@95 122 static void n1fv_7(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs)
cannam@95 123 {
cannam@95 124 DVK(KP900968867, +0.900968867902419126236102319507445051165919162);
cannam@95 125 DVK(KP222520933, +0.222520933956314404288902564496794759466355569);
cannam@95 126 DVK(KP623489801, +0.623489801858733530525004884004239810632274731);
cannam@95 127 DVK(KP781831482, +0.781831482468029808708444526674057750232334519);
cannam@95 128 DVK(KP974927912, +0.974927912181823607018131682993931217232785801);
cannam@95 129 DVK(KP433883739, +0.433883739117558120475768332848358754609990728);
cannam@95 130 {
cannam@95 131 INT i;
cannam@95 132 const R *xi;
cannam@95 133 R *xo;
cannam@95 134 xi = ri;
cannam@95 135 xo = ro;
cannam@95 136 for (i = v; i > 0; i = i - VL, xi = xi + (VL * ivs), xo = xo + (VL * ovs), MAKE_VOLATILE_STRIDE(14, is), MAKE_VOLATILE_STRIDE(14, os)) {
cannam@95 137 V T1, Ta, Td, T4, Tc, T7, Te, T8, T9, Tj, Ti;
cannam@95 138 T1 = LD(&(xi[0]), ivs, &(xi[0]));
cannam@95 139 T8 = LD(&(xi[WS(is, 3)]), ivs, &(xi[WS(is, 1)]));
cannam@95 140 T9 = LD(&(xi[WS(is, 4)]), ivs, &(xi[0]));
cannam@95 141 Ta = VADD(T8, T9);
cannam@95 142 Td = VSUB(T9, T8);
cannam@95 143 {
cannam@95 144 V T2, T3, T5, T6;
cannam@95 145 T2 = LD(&(xi[WS(is, 1)]), ivs, &(xi[WS(is, 1)]));
cannam@95 146 T3 = LD(&(xi[WS(is, 6)]), ivs, &(xi[0]));
cannam@95 147 T4 = VADD(T2, T3);
cannam@95 148 Tc = VSUB(T3, T2);
cannam@95 149 T5 = LD(&(xi[WS(is, 2)]), ivs, &(xi[0]));
cannam@95 150 T6 = LD(&(xi[WS(is, 5)]), ivs, &(xi[WS(is, 1)]));
cannam@95 151 T7 = VADD(T5, T6);
cannam@95 152 Te = VSUB(T6, T5);
cannam@95 153 }
cannam@95 154 ST(&(xo[0]), VADD(T1, VADD(T4, VADD(T7, Ta))), ovs, &(xo[0]));
cannam@95 155 Tj = VBYI(VFMA(LDK(KP433883739), Tc, VFNMS(LDK(KP781831482), Te, VMUL(LDK(KP974927912), Td))));
cannam@95 156 Ti = VFMA(LDK(KP623489801), T7, VFNMS(LDK(KP222520933), Ta, VFNMS(LDK(KP900968867), T4, T1)));
cannam@95 157 ST(&(xo[WS(os, 4)]), VSUB(Ti, Tj), ovs, &(xo[0]));
cannam@95 158 ST(&(xo[WS(os, 3)]), VADD(Ti, Tj), ovs, &(xo[WS(os, 1)]));
cannam@95 159 {
cannam@95 160 V Tf, Tb, Th, Tg;
cannam@95 161 Tf = VBYI(VFNMS(LDK(KP781831482), Td, VFNMS(LDK(KP433883739), Te, VMUL(LDK(KP974927912), Tc))));
cannam@95 162 Tb = VFMA(LDK(KP623489801), Ta, VFNMS(LDK(KP900968867), T7, VFNMS(LDK(KP222520933), T4, T1)));
cannam@95 163 ST(&(xo[WS(os, 5)]), VSUB(Tb, Tf), ovs, &(xo[WS(os, 1)]));
cannam@95 164 ST(&(xo[WS(os, 2)]), VADD(Tb, Tf), ovs, &(xo[0]));
cannam@95 165 Th = VBYI(VFMA(LDK(KP781831482), Tc, VFMA(LDK(KP974927912), Te, VMUL(LDK(KP433883739), Td))));
cannam@95 166 Tg = VFMA(LDK(KP623489801), T4, VFNMS(LDK(KP900968867), Ta, VFNMS(LDK(KP222520933), T7, T1)));
cannam@95 167 ST(&(xo[WS(os, 6)]), VSUB(Tg, Th), ovs, &(xo[0]));
cannam@95 168 ST(&(xo[WS(os, 1)]), VADD(Tg, Th), ovs, &(xo[WS(os, 1)]));
cannam@95 169 }
cannam@95 170 }
cannam@95 171 }
cannam@95 172 VLEAVE();
cannam@95 173 }
cannam@95 174
cannam@95 175 static const kdft_desc desc = { 7, XSIMD_STRING("n1fv_7"), {18, 6, 12, 0}, &GENUS, 0, 0, 0, 0 };
cannam@95 176
cannam@95 177 void XSIMD(codelet_n1fv_7) (planner *p) {
cannam@95 178 X(kdft_register) (p, n1fv_7, &desc);
cannam@95 179 }
cannam@95 180
cannam@95 181 #endif /* HAVE_FMA */