Coverage Report

Created: 2025-11-24 06:40

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/fftw3/rdft/scalar/r2cf/hf_2.c
Line
Count
Source
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 Mon Nov 24 06:38:48 UTC 2025 */
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_hc2hc.native -fma -compact -variables 4 -pipeline-latency 4 -n 2 -dit -name hf_2 -include rdft/scalar/hf.h */
29
30
/*
31
 * This function contains 6 FP additions, 4 FP multiplications,
32
 * (or, 4 additions, 2 multiplications, 2 fused multiply/add),
33
 * 11 stack variables, 0 constants, and 8 memory accesses
34
 */
35
#include "rdft/scalar/hf.h"
36
37
static void hf_2(R *cr, R *ci, const R *W, stride rs, INT mb, INT me, INT ms)
38
{
39
     {
40
    INT m;
41
    for (m = mb, W = W + ((mb - 1) * 2); m < me; m = m + 1, cr = cr + ms, ci = ci - ms, W = W + 2, MAKE_VOLATILE_STRIDE(4, rs)) {
42
         E T1, Ta, T3, T6, T4, T8, T2, T7, T9, T5;
43
         T1 = cr[0];
44
         Ta = ci[0];
45
         T3 = cr[WS(rs, 1)];
46
         T6 = ci[WS(rs, 1)];
47
         T2 = W[0];
48
         T4 = T2 * T3;
49
         T8 = T2 * T6;
50
         T5 = W[1];
51
         T7 = FMA(T5, T6, T4);
52
         T9 = FNMS(T5, T3, T8);
53
         ci[0] = T1 - T7;
54
         cr[0] = T1 + T7;
55
         cr[WS(rs, 1)] = T9 - Ta;
56
         ci[WS(rs, 1)] = T9 + Ta;
57
    }
58
     }
59
}
60
61
static const tw_instr twinstr[] = {
62
     { TW_FULL, 1, 2 },
63
     { TW_NEXT, 1, 0 }
64
};
65
66
static const hc2hc_desc desc = { 2, "hf_2", twinstr, &GENUS, { 4, 2, 2, 0 } };
67
68
void X(codelet_hf_2) (planner *p) {
69
     X(khc2hc_register) (p, hf_2, &desc);
70
}
71
#else
72
73
/* Generated by: ../../../genfft/gen_hc2hc.native -compact -variables 4 -pipeline-latency 4 -n 2 -dit -name hf_2 -include rdft/scalar/hf.h */
74
75
/*
76
 * This function contains 6 FP additions, 4 FP multiplications,
77
 * (or, 4 additions, 2 multiplications, 2 fused multiply/add),
78
 * 9 stack variables, 0 constants, and 8 memory accesses
79
 */
80
#include "rdft/scalar/hf.h"
81
82
static void hf_2(R *cr, R *ci, const R *W, stride rs, INT mb, INT me, INT ms)
83
0
{
84
0
     {
85
0
    INT m;
86
0
    for (m = mb, W = W + ((mb - 1) * 2); m < me; m = m + 1, cr = cr + ms, ci = ci - ms, W = W + 2, MAKE_VOLATILE_STRIDE(4, rs)) {
87
0
         E T1, T8, T6, T7;
88
0
         T1 = cr[0];
89
0
         T8 = ci[0];
90
0
         {
91
0
        E T3, T5, T2, T4;
92
0
        T3 = cr[WS(rs, 1)];
93
0
        T5 = ci[WS(rs, 1)];
94
0
        T2 = W[0];
95
0
        T4 = W[1];
96
0
        T6 = FMA(T2, T3, T4 * T5);
97
0
        T7 = FNMS(T4, T3, T2 * T5);
98
0
         }
99
0
         ci[0] = T1 - T6;
100
0
         cr[0] = T1 + T6;
101
0
         cr[WS(rs, 1)] = T7 - T8;
102
0
         ci[WS(rs, 1)] = T7 + T8;
103
0
    }
104
0
     }
105
0
}
106
107
static const tw_instr twinstr[] = {
108
     { TW_FULL, 1, 2 },
109
     { TW_NEXT, 1, 0 }
110
};
111
112
static const hc2hc_desc desc = { 2, "hf_2", twinstr, &GENUS, { 4, 2, 2, 0 } };
113
114
1
void X(codelet_hf_2) (planner *p) {
115
1
     X(khc2hc_register) (p, hf_2, &desc);
116
1
}
117
#endif