Coverage Report

Created: 2024-09-08 06:43

/src/fftw3/rdft/scalar/r2cf/r2cfII_6.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:29 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 6 -name r2cfII_6 -dft-II -include rdft/scalar/r2cfII.h */
29
30
/*
31
 * This function contains 13 FP additions, 6 FP multiplications,
32
 * (or, 7 additions, 0 multiplications, 6 fused multiply/add),
33
 * 15 stack variables, 2 constants, and 12 memory accesses
34
 */
35
#include "rdft/scalar/r2cfII.h"
36
37
static void r2cfII_6(R *R0, R *R1, R *Cr, R *Ci, stride rs, stride csr, stride csi, INT v, INT ivs, INT ovs)
38
{
39
     DK(KP866025403, +0.866025403784438646763723170752936183471402627);
40
     DK(KP500000000, +0.500000000000000000000000000000000000000000000);
41
     {
42
    INT i;
43
    for (i = v; i > 0; i = i - 1, R0 = R0 + ivs, R1 = R1 + ivs, Cr = Cr + ovs, Ci = Ci + ovs, MAKE_VOLATILE_STRIDE(24, rs), MAKE_VOLATILE_STRIDE(24, csr), MAKE_VOLATILE_STRIDE(24, csi)) {
44
         E T1, T9, T2, T3, T4, Tc, T8, Ta, T6, T7, T5, Tb;
45
         T1 = R0[0];
46
         T9 = R1[WS(rs, 1)];
47
         T2 = R0[WS(rs, 2)];
48
         T3 = R0[WS(rs, 1)];
49
         T4 = T3 - T2;
50
         Tc = T2 + T3;
51
         T6 = R1[WS(rs, 2)];
52
         T7 = R1[0];
53
         T8 = T6 - T7;
54
         Ta = T6 + T7;
55
         Ci[WS(csi, 1)] = T9 - Ta;
56
         Cr[WS(csr, 1)] = T1 + T2 - T3;
57
         T5 = FMA(KP500000000, T4, T1);
58
         Cr[0] = FNMS(KP866025403, T8, T5);
59
         Cr[WS(csr, 2)] = FMA(KP866025403, T8, T5);
60
         Tb = FMA(KP500000000, Ta, T9);
61
         Ci[0] = -(FMA(KP866025403, Tc, Tb));
62
         Ci[WS(csi, 2)] = FMS(KP866025403, Tc, Tb);
63
    }
64
     }
65
}
66
67
static const kr2c_desc desc = { 6, "r2cfII_6", { 7, 0, 6, 0 }, &GENUS };
68
69
void X(codelet_r2cfII_6) (planner *p) { X(kr2c_register) (p, r2cfII_6, &desc);
70
}
71
72
#else
73
74
/* Generated by: ../../../genfft/gen_r2cf.native -compact -variables 4 -pipeline-latency 4 -n 6 -name r2cfII_6 -dft-II -include rdft/scalar/r2cfII.h */
75
76
/*
77
 * This function contains 13 FP additions, 4 FP multiplications,
78
 * (or, 11 additions, 2 multiplications, 2 fused multiply/add),
79
 * 14 stack variables, 2 constants, and 12 memory accesses
80
 */
81
#include "rdft/scalar/r2cfII.h"
82
83
static void r2cfII_6(R *R0, R *R1, R *Cr, R *Ci, stride rs, stride csr, stride csi, INT v, INT ivs, INT ovs)
84
0
{
85
0
     DK(KP500000000, +0.500000000000000000000000000000000000000000000);
86
0
     DK(KP866025403, +0.866025403784438646763723170752936183471402627);
87
0
     {
88
0
    INT i;
89
0
    for (i = v; i > 0; i = i - 1, R0 = R0 + ivs, R1 = R1 + ivs, Cr = Cr + ovs, Ci = Ci + ovs, MAKE_VOLATILE_STRIDE(24, rs), MAKE_VOLATILE_STRIDE(24, csr), MAKE_VOLATILE_STRIDE(24, csi)) {
90
0
         E Ta, T7, T9, T1, T3, T2, T8, T4, T5, T6, Tb;
91
0
         Ta = R1[WS(rs, 1)];
92
0
         T5 = R1[WS(rs, 2)];
93
0
         T6 = R1[0];
94
0
         T7 = KP866025403 * (T5 - T6);
95
0
         T9 = T5 + T6;
96
0
         T1 = R0[0];
97
0
         T3 = R0[WS(rs, 1)];
98
0
         T2 = R0[WS(rs, 2)];
99
0
         T8 = KP866025403 * (T2 + T3);
100
0
         T4 = FMA(KP500000000, T3 - T2, T1);
101
0
         Cr[0] = T4 - T7;
102
0
         Tb = FMA(KP500000000, T9, Ta);
103
0
         Ci[0] = -(T8 + Tb);
104
0
         Ci[WS(csi, 2)] = T8 - Tb;
105
0
         Cr[WS(csr, 2)] = T4 + T7;
106
0
         Ci[WS(csi, 1)] = Ta - T9;
107
0
         Cr[WS(csr, 1)] = T1 + T2 - T3;
108
0
    }
109
0
     }
110
0
}
111
112
static const kr2c_desc desc = { 6, "r2cfII_6", { 11, 2, 2, 0 }, &GENUS };
113
114
1
void X(codelet_r2cfII_6) (planner *p) { X(kr2c_register) (p, r2cfII_6, &desc);
115
1
}
116
117
#endif