annotate src/fftw-3.3.8/rdft/scalar/r2r/e01_8.c @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents bd3cc4d1df30
children
rev   line source
cannam@167 1 /*
cannam@167 2 * Copyright (c) 2003, 2007-14 Matteo Frigo
cannam@167 3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
cannam@167 4 *
cannam@167 5 * This program is free software; you can redistribute it and/or modify
cannam@167 6 * it under the terms of the GNU General Public License as published by
cannam@167 7 * the Free Software Foundation; either version 2 of the License, or
cannam@167 8 * (at your option) any later version.
cannam@167 9 *
cannam@167 10 * This program is distributed in the hope that it will be useful,
cannam@167 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@167 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@167 13 * GNU General Public License for more details.
cannam@167 14 *
cannam@167 15 * You should have received a copy of the GNU General Public License
cannam@167 16 * along with this program; if not, write to the Free Software
cannam@167 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
cannam@167 18 *
cannam@167 19 */
cannam@167 20
cannam@167 21 /* This file was automatically generated --- DO NOT EDIT */
cannam@167 22 /* Generated on Thu May 24 08:08:10 EDT 2018 */
cannam@167 23
cannam@167 24 #include "rdft/codelet-rdft.h"
cannam@167 25
cannam@167 26 #if defined(ARCH_PREFERS_FMA) || defined(ISA_EXTENSION_PREFERS_FMA)
cannam@167 27
cannam@167 28 /* Generated by: ../../../genfft/gen_r2r.native -fma -compact -variables 4 -pipeline-latency 4 -redft01 -n 8 -name e01_8 -include rdft/scalar/r2r.h */
cannam@167 29
cannam@167 30 /*
cannam@167 31 * This function contains 26 FP additions, 24 FP multiplications,
cannam@167 32 * (or, 2 additions, 0 multiplications, 24 fused multiply/add),
cannam@167 33 * 27 stack variables, 8 constants, and 16 memory accesses
cannam@167 34 */
cannam@167 35 #include "rdft/scalar/r2r.h"
cannam@167 36
cannam@167 37 static void e01_8(const R *I, R *O, stride is, stride os, INT v, INT ivs, INT ovs)
cannam@167 38 {
cannam@167 39 DK(KP1_662939224, +1.662939224605090474157576755235811513477121624);
cannam@167 40 DK(KP668178637, +0.668178637919298919997757686523080761552472251);
cannam@167 41 DK(KP1_961570560, +1.961570560806460898252364472268478073947867462);
cannam@167 42 DK(KP198912367, +0.198912367379658006911597622644676228597850501);
cannam@167 43 DK(KP1_847759065, +1.847759065022573512256366378793576573644833252);
cannam@167 44 DK(KP707106781, +0.707106781186547524400844362104849039284835938);
cannam@167 45 DK(KP414213562, +0.414213562373095048801688724209698078569671875);
cannam@167 46 DK(KP1_414213562, +1.414213562373095048801688724209698078569671875);
cannam@167 47 {
cannam@167 48 INT i;
cannam@167 49 for (i = v; i > 0; i = i - 1, I = I + ivs, O = O + ovs, MAKE_VOLATILE_STRIDE(16, is), MAKE_VOLATILE_STRIDE(16, os)) {
cannam@167 50 E T3, Tj, T6, Tk, Tc, Tn, Tf, Tm;
cannam@167 51 {
cannam@167 52 E T1, T2, T4, T5;
cannam@167 53 T1 = I[0];
cannam@167 54 T2 = I[WS(is, 4)];
cannam@167 55 T3 = FMA(KP1_414213562, T2, T1);
cannam@167 56 Tj = FNMS(KP1_414213562, T2, T1);
cannam@167 57 T4 = I[WS(is, 2)];
cannam@167 58 T5 = I[WS(is, 6)];
cannam@167 59 T6 = FMA(KP414213562, T5, T4);
cannam@167 60 Tk = FMS(KP414213562, T4, T5);
cannam@167 61 {
cannam@167 62 E T8, Td, Tb, Te, T9, Ta;
cannam@167 63 T8 = I[WS(is, 1)];
cannam@167 64 Td = I[WS(is, 7)];
cannam@167 65 T9 = I[WS(is, 5)];
cannam@167 66 Ta = I[WS(is, 3)];
cannam@167 67 Tb = T9 + Ta;
cannam@167 68 Te = Ta - T9;
cannam@167 69 Tc = FMA(KP707106781, Tb, T8);
cannam@167 70 Tn = FNMS(KP707106781, Te, Td);
cannam@167 71 Tf = FMA(KP707106781, Te, Td);
cannam@167 72 Tm = FNMS(KP707106781, Tb, T8);
cannam@167 73 }
cannam@167 74 }
cannam@167 75 {
cannam@167 76 E T7, Tg, Tp, Tq;
cannam@167 77 T7 = FMA(KP1_847759065, T6, T3);
cannam@167 78 Tg = FMA(KP198912367, Tf, Tc);
cannam@167 79 O[WS(os, 7)] = FNMS(KP1_961570560, Tg, T7);
cannam@167 80 O[0] = FMA(KP1_961570560, Tg, T7);
cannam@167 81 Tp = FNMS(KP1_847759065, Tk, Tj);
cannam@167 82 Tq = FMA(KP668178637, Tm, Tn);
cannam@167 83 O[WS(os, 5)] = FNMS(KP1_662939224, Tq, Tp);
cannam@167 84 O[WS(os, 2)] = FMA(KP1_662939224, Tq, Tp);
cannam@167 85 }
cannam@167 86 {
cannam@167 87 E Th, Ti, Tl, To;
cannam@167 88 Th = FNMS(KP1_847759065, T6, T3);
cannam@167 89 Ti = FNMS(KP198912367, Tc, Tf);
cannam@167 90 O[WS(os, 3)] = FNMS(KP1_961570560, Ti, Th);
cannam@167 91 O[WS(os, 4)] = FMA(KP1_961570560, Ti, Th);
cannam@167 92 Tl = FMA(KP1_847759065, Tk, Tj);
cannam@167 93 To = FNMS(KP668178637, Tn, Tm);
cannam@167 94 O[WS(os, 6)] = FNMS(KP1_662939224, To, Tl);
cannam@167 95 O[WS(os, 1)] = FMA(KP1_662939224, To, Tl);
cannam@167 96 }
cannam@167 97 }
cannam@167 98 }
cannam@167 99 }
cannam@167 100
cannam@167 101 static const kr2r_desc desc = { 8, "e01_8", {2, 0, 24, 0}, &GENUS, REDFT01 };
cannam@167 102
cannam@167 103 void X(codelet_e01_8) (planner *p) {
cannam@167 104 X(kr2r_register) (p, e01_8, &desc);
cannam@167 105 }
cannam@167 106
cannam@167 107 #else
cannam@167 108
cannam@167 109 /* Generated by: ../../../genfft/gen_r2r.native -compact -variables 4 -pipeline-latency 4 -redft01 -n 8 -name e01_8 -include rdft/scalar/r2r.h */
cannam@167 110
cannam@167 111 /*
cannam@167 112 * This function contains 26 FP additions, 15 FP multiplications,
cannam@167 113 * (or, 20 additions, 9 multiplications, 6 fused multiply/add),
cannam@167 114 * 28 stack variables, 8 constants, and 16 memory accesses
cannam@167 115 */
cannam@167 116 #include "rdft/scalar/r2r.h"
cannam@167 117
cannam@167 118 static void e01_8(const R *I, R *O, stride is, stride os, INT v, INT ivs, INT ovs)
cannam@167 119 {
cannam@167 120 DK(KP1_662939224, +1.662939224605090474157576755235811513477121624);
cannam@167 121 DK(KP1_111140466, +1.111140466039204449485661627897065748749874382);
cannam@167 122 DK(KP390180644, +0.390180644032256535696569736954044481855383236);
cannam@167 123 DK(KP1_961570560, +1.961570560806460898252364472268478073947867462);
cannam@167 124 DK(KP707106781, +0.707106781186547524400844362104849039284835938);
cannam@167 125 DK(KP1_414213562, +1.414213562373095048801688724209698078569671875);
cannam@167 126 DK(KP765366864, +0.765366864730179543456919968060797733522689125);
cannam@167 127 DK(KP1_847759065, +1.847759065022573512256366378793576573644833252);
cannam@167 128 {
cannam@167 129 INT i;
cannam@167 130 for (i = v; i > 0; i = i - 1, I = I + ivs, O = O + ovs, MAKE_VOLATILE_STRIDE(16, is), MAKE_VOLATILE_STRIDE(16, os)) {
cannam@167 131 E T7, Tl, T4, Tk, Td, To, Tg, Tn;
cannam@167 132 {
cannam@167 133 E T5, T6, T1, T3, T2;
cannam@167 134 T5 = I[WS(is, 2)];
cannam@167 135 T6 = I[WS(is, 6)];
cannam@167 136 T7 = FMA(KP1_847759065, T5, KP765366864 * T6);
cannam@167 137 Tl = FNMS(KP1_847759065, T6, KP765366864 * T5);
cannam@167 138 T1 = I[0];
cannam@167 139 T2 = I[WS(is, 4)];
cannam@167 140 T3 = KP1_414213562 * T2;
cannam@167 141 T4 = T1 + T3;
cannam@167 142 Tk = T1 - T3;
cannam@167 143 {
cannam@167 144 E T9, Tf, Tc, Te, Ta, Tb;
cannam@167 145 T9 = I[WS(is, 1)];
cannam@167 146 Tf = I[WS(is, 7)];
cannam@167 147 Ta = I[WS(is, 5)];
cannam@167 148 Tb = I[WS(is, 3)];
cannam@167 149 Tc = KP707106781 * (Ta + Tb);
cannam@167 150 Te = KP707106781 * (Ta - Tb);
cannam@167 151 Td = T9 + Tc;
cannam@167 152 To = Te + Tf;
cannam@167 153 Tg = Te - Tf;
cannam@167 154 Tn = T9 - Tc;
cannam@167 155 }
cannam@167 156 }
cannam@167 157 {
cannam@167 158 E T8, Th, Tq, Tr;
cannam@167 159 T8 = T4 + T7;
cannam@167 160 Th = FNMS(KP390180644, Tg, KP1_961570560 * Td);
cannam@167 161 O[WS(os, 7)] = T8 - Th;
cannam@167 162 O[0] = T8 + Th;
cannam@167 163 Tq = Tk - Tl;
cannam@167 164 Tr = FMA(KP1_111140466, Tn, KP1_662939224 * To);
cannam@167 165 O[WS(os, 5)] = Tq - Tr;
cannam@167 166 O[WS(os, 2)] = Tq + Tr;
cannam@167 167 }
cannam@167 168 {
cannam@167 169 E Ti, Tj, Tm, Tp;
cannam@167 170 Ti = T4 - T7;
cannam@167 171 Tj = FMA(KP390180644, Td, KP1_961570560 * Tg);
cannam@167 172 O[WS(os, 4)] = Ti - Tj;
cannam@167 173 O[WS(os, 3)] = Ti + Tj;
cannam@167 174 Tm = Tk + Tl;
cannam@167 175 Tp = FNMS(KP1_111140466, To, KP1_662939224 * Tn);
cannam@167 176 O[WS(os, 6)] = Tm - Tp;
cannam@167 177 O[WS(os, 1)] = Tm + Tp;
cannam@167 178 }
cannam@167 179 }
cannam@167 180 }
cannam@167 181 }
cannam@167 182
cannam@167 183 static const kr2r_desc desc = { 8, "e01_8", {20, 9, 6, 0}, &GENUS, REDFT01 };
cannam@167 184
cannam@167 185 void X(codelet_e01_8) (planner *p) {
cannam@167 186 X(kr2r_register) (p, e01_8, &desc);
cannam@167 187 }
cannam@167 188
cannam@167 189 #endif