Coverage Report

Created: 2024-09-08 06:43

/src/fftw3/rdft/scalar/r2cf/r2cf_7.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2003, 2007-14 Matteo Frigo
3
 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation; either version 2 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18
 *
19
 */
20
21
/* This file was automatically generated --- DO NOT EDIT */
22
/* Generated on Sun Sep  8 06:41:09 UTC 2024 */
23
24
#include "rdft/codelet-rdft.h"
25
26
#if defined(ARCH_PREFERS_FMA) || defined(ISA_EXTENSION_PREFERS_FMA)
27
28
/* Generated by: ../../../genfft/gen_r2cf.native -fma -compact -variables 4 -pipeline-latency 4 -n 7 -name r2cf_7 -include rdft/scalar/r2cf.h */
29
30
/*
31
 * This function contains 24 FP additions, 18 FP multiplications,
32
 * (or, 9 additions, 3 multiplications, 15 fused multiply/add),
33
 * 23 stack variables, 6 constants, and 14 memory accesses
34
 */
35
#include "rdft/scalar/r2cf.h"
36
37
static void r2cf_7(R *R0, R *R1, R *Cr, R *Ci, stride rs, stride csr, stride csi, INT v, INT ivs, INT ovs)
38
{
39
     DK(KP801937735, +0.801937735804838252472204639014890102331838324);
40
     DK(KP974927912, +0.974927912181823607018131682993931217232785801);
41
     DK(KP554958132, +0.554958132087371191422194871006410481067288862);
42
     DK(KP900968867, +0.900968867902419126236102319507445051165919162);
43
     DK(KP692021471, +0.692021471630095869627814897002069140197260599);
44
     DK(KP356895867, +0.356895867892209443894399510021300583399127187);
45
     {
46
    INT i;
47
    for (i = v; i > 0; i = i - 1, R0 = R0 + ivs, R1 = R1 + ivs, Cr = Cr + ovs, Ci = Ci + ovs, MAKE_VOLATILE_STRIDE(28, rs), MAKE_VOLATILE_STRIDE(28, csr), MAKE_VOLATILE_STRIDE(28, csi)) {
48
         E T1, T4, Ta, T7, Tb, Td, Tj, Ti, Th, Tf;
49
         T1 = R0[0];
50
         {
51
        E T2, T3, T8, T9, T5, T6;
52
        T2 = R1[0];
53
        T3 = R0[WS(rs, 3)];
54
        T4 = T2 + T3;
55
        T8 = R1[WS(rs, 1)];
56
        T9 = R0[WS(rs, 2)];
57
        Ta = T8 + T9;
58
        T5 = R0[WS(rs, 1)];
59
        T6 = R1[WS(rs, 2)];
60
        T7 = T5 + T6;
61
        Tb = FNMS(KP356895867, Ta, T7);
62
        Td = FNMS(KP356895867, T4, Ta);
63
        Tj = T6 - T5;
64
        Ti = T9 - T8;
65
        Th = T3 - T2;
66
        Tf = FNMS(KP356895867, T7, T4);
67
         }
68
         {
69
        E Tc, Tm, Te, Tk, Tg, Tl;
70
        Tc = FNMS(KP692021471, Tb, T4);
71
        Cr[WS(csr, 3)] = FNMS(KP900968867, Tc, T1);
72
        Tm = FNMS(KP554958132, Th, Tj);
73
        Ci[WS(csi, 3)] = KP974927912 * (FNMS(KP801937735, Tm, Ti));
74
        Te = FNMS(KP692021471, Td, T7);
75
        Cr[WS(csr, 2)] = FNMS(KP900968867, Te, T1);
76
        Tk = FMA(KP554958132, Tj, Ti);
77
        Ci[WS(csi, 2)] = KP974927912 * (FNMS(KP801937735, Tk, Th));
78
        Cr[0] = T1 + T4 + T7 + Ta;
79
        Tg = FNMS(KP692021471, Tf, Ta);
80
        Cr[WS(csr, 1)] = FNMS(KP900968867, Tg, T1);
81
        Tl = FMA(KP554958132, Ti, Th);
82
        Ci[WS(csi, 1)] = KP974927912 * (FMA(KP801937735, Tl, Tj));
83
         }
84
    }
85
     }
86
}
87
88
static const kr2c_desc desc = { 7, "r2cf_7", { 9, 3, 15, 0 }, &GENUS };
89
90
void X(codelet_r2cf_7) (planner *p) { X(kr2c_register) (p, r2cf_7, &desc);
91
}
92
93
#else
94
95
/* Generated by: ../../../genfft/gen_r2cf.native -compact -variables 4 -pipeline-latency 4 -n 7 -name r2cf_7 -include rdft/scalar/r2cf.h */
96
97
/*
98
 * This function contains 24 FP additions, 18 FP multiplications,
99
 * (or, 12 additions, 6 multiplications, 12 fused multiply/add),
100
 * 20 stack variables, 6 constants, and 14 memory accesses
101
 */
102
#include "rdft/scalar/r2cf.h"
103
104
static void r2cf_7(R *R0, R *R1, R *Cr, R *Ci, stride rs, stride csr, stride csi, INT v, INT ivs, INT ovs)
105
0
{
106
0
     DK(KP222520933, +0.222520933956314404288902564496794759466355569);
107
0
     DK(KP900968867, +0.900968867902419126236102319507445051165919162);
108
0
     DK(KP623489801, +0.623489801858733530525004884004239810632274731);
109
0
     DK(KP433883739, +0.433883739117558120475768332848358754609990728);
110
0
     DK(KP781831482, +0.781831482468029808708444526674057750232334519);
111
0
     DK(KP974927912, +0.974927912181823607018131682993931217232785801);
112
0
     {
113
0
    INT i;
114
0
    for (i = v; i > 0; i = i - 1, R0 = R0 + ivs, R1 = R1 + ivs, Cr = Cr + ovs, Ci = Ci + ovs, MAKE_VOLATILE_STRIDE(28, rs), MAKE_VOLATILE_STRIDE(28, csr), MAKE_VOLATILE_STRIDE(28, csi)) {
115
0
         E T1, Ta, Tb, T4, Td, T7, Tc, T8, T9;
116
0
         T1 = R0[0];
117
0
         T8 = R1[0];
118
0
         T9 = R0[WS(rs, 3)];
119
0
         Ta = T8 + T9;
120
0
         Tb = T9 - T8;
121
0
         {
122
0
        E T2, T3, T5, T6;
123
0
        T2 = R0[WS(rs, 1)];
124
0
        T3 = R1[WS(rs, 2)];
125
0
        T4 = T2 + T3;
126
0
        Td = T3 - T2;
127
0
        T5 = R1[WS(rs, 1)];
128
0
        T6 = R0[WS(rs, 2)];
129
0
        T7 = T5 + T6;
130
0
        Tc = T6 - T5;
131
0
         }
132
0
         Ci[WS(csi, 2)] = FNMS(KP781831482, Tc, KP974927912 * Tb) - (KP433883739 * Td);
133
0
         Ci[WS(csi, 1)] = FMA(KP781831482, Tb, KP974927912 * Td) + (KP433883739 * Tc);
134
0
         Cr[WS(csr, 2)] = FMA(KP623489801, T7, T1) + FNMA(KP900968867, T4, KP222520933 * Ta);
135
0
         Ci[WS(csi, 3)] = FMA(KP433883739, Tb, KP974927912 * Tc) - (KP781831482 * Td);
136
0
         Cr[WS(csr, 3)] = FMA(KP623489801, T4, T1) + FNMA(KP222520933, T7, KP900968867 * Ta);
137
0
         Cr[WS(csr, 1)] = FMA(KP623489801, Ta, T1) + FNMA(KP900968867, T7, KP222520933 * T4);
138
0
         Cr[0] = T1 + Ta + T4 + T7;
139
0
    }
140
0
     }
141
0
}
142
143
static const kr2c_desc desc = { 7, "r2cf_7", { 12, 6, 12, 0 }, &GENUS };
144
145
1
void X(codelet_r2cf_7) (planner *p) { X(kr2c_register) (p, r2cf_7, &desc);
146
1
}
147
148
#endif