Coverage Report

Created: 2026-05-16 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/opus/celt/pitch.h
Line
Count
Source
1
/* Copyright (c) 2007-2008 CSIRO
2
   Copyright (c) 2007-2009 Xiph.Org Foundation
3
   Written by Jean-Marc Valin */
4
/**
5
   @file pitch.h
6
   @brief Pitch analysis
7
 */
8
9
/*
10
   Redistribution and use in source and binary forms, with or without
11
   modification, are permitted provided that the following conditions
12
   are met:
13
14
   - Redistributions of source code must retain the above copyright
15
   notice, this list of conditions and the following disclaimer.
16
17
   - Redistributions in binary form must reproduce the above copyright
18
   notice, this list of conditions and the following disclaimer in the
19
   documentation and/or other materials provided with the distribution.
20
21
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
25
   OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34
#ifndef PITCH_H
35
#define PITCH_H
36
37
#include "modes.h"
38
#include "cpu_support.h"
39
40
#if (defined(OPUS_X86_MAY_HAVE_SSE) && !defined(FIXED_POINT)) \
41
  || ((defined(OPUS_X86_MAY_HAVE_SSE4_1) || defined(OPUS_X86_MAY_HAVE_SSE2)) && defined(FIXED_POINT))
42
#include "x86/pitch_sse.h"
43
#endif
44
45
#if defined(FIXED_POINT) && defined(__mips)
46
#include "mips/pitch_mipsr1.h"
47
#endif
48
49
#if (defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR))
50
# include "arm/pitch_arm.h"
51
#endif
52
53
void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x_lp,
54
      int len, int C, int factor, int arch);
55
56
void pitch_search(const opus_val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTRICT y,
57
                  int len, int max_pitch, int *pitch, int arch);
58
59
opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod,
60
      int N, int *T0, int prev_period, opus_val16 prev_gain, int arch);
61
62
63
/* OPT: This is the kernel you really want to optimize. It gets used a lot
64
   by the prefilter and by the PLC. */
65
static OPUS_INLINE void xcorr_kernel_c(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4], int len)
66
2.74G
{
67
2.74G
   int j;
68
2.74G
   opus_val16 y_0, y_1, y_2, y_3;
69
2.74G
   celt_assert(len>=3);
70
2.74G
   y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */
71
2.74G
   y_0=*y++;
72
2.74G
   y_1=*y++;
73
2.74G
   y_2=*y++;
74
65.4G
   for (j=0;j<len-3;j+=4)
75
62.6G
   {
76
62.6G
      opus_val16 tmp;
77
62.6G
      tmp = *x++;
78
62.6G
      y_3=*y++;
79
62.6G
      sum[0] = MAC16_16(sum[0],tmp,y_0);
80
62.6G
      sum[1] = MAC16_16(sum[1],tmp,y_1);
81
62.6G
      sum[2] = MAC16_16(sum[2],tmp,y_2);
82
62.6G
      sum[3] = MAC16_16(sum[3],tmp,y_3);
83
62.6G
      tmp=*x++;
84
62.6G
      y_0=*y++;
85
62.6G
      sum[0] = MAC16_16(sum[0],tmp,y_1);
86
62.6G
      sum[1] = MAC16_16(sum[1],tmp,y_2);
87
62.6G
      sum[2] = MAC16_16(sum[2],tmp,y_3);
88
62.6G
      sum[3] = MAC16_16(sum[3],tmp,y_0);
89
62.6G
      tmp=*x++;
90
62.6G
      y_1=*y++;
91
62.6G
      sum[0] = MAC16_16(sum[0],tmp,y_2);
92
62.6G
      sum[1] = MAC16_16(sum[1],tmp,y_3);
93
62.6G
      sum[2] = MAC16_16(sum[2],tmp,y_0);
94
62.6G
      sum[3] = MAC16_16(sum[3],tmp,y_1);
95
62.6G
      tmp=*x++;
96
62.6G
      y_2=*y++;
97
62.6G
      sum[0] = MAC16_16(sum[0],tmp,y_3);
98
62.6G
      sum[1] = MAC16_16(sum[1],tmp,y_0);
99
62.6G
      sum[2] = MAC16_16(sum[2],tmp,y_1);
100
62.6G
      sum[3] = MAC16_16(sum[3],tmp,y_2);
101
62.6G
   }
102
2.74G
   if (j++<len)
103
280M
   {
104
280M
      opus_val16 tmp = *x++;
105
280M
      y_3=*y++;
106
280M
      sum[0] = MAC16_16(sum[0],tmp,y_0);
107
280M
      sum[1] = MAC16_16(sum[1],tmp,y_1);
108
280M
      sum[2] = MAC16_16(sum[2],tmp,y_2);
109
280M
      sum[3] = MAC16_16(sum[3],tmp,y_3);
110
280M
   }
111
2.74G
   if (j++<len)
112
280M
   {
113
280M
      opus_val16 tmp=*x++;
114
280M
      y_0=*y++;
115
280M
      sum[0] = MAC16_16(sum[0],tmp,y_1);
116
280M
      sum[1] = MAC16_16(sum[1],tmp,y_2);
117
280M
      sum[2] = MAC16_16(sum[2],tmp,y_3);
118
280M
      sum[3] = MAC16_16(sum[3],tmp,y_0);
119
280M
   }
120
2.74G
   if (j<len)
121
0
   {
122
0
      opus_val16 tmp=*x++;
123
0
      y_1=*y++;
124
0
      sum[0] = MAC16_16(sum[0],tmp,y_2);
125
0
      sum[1] = MAC16_16(sum[1],tmp,y_3);
126
0
      sum[2] = MAC16_16(sum[2],tmp,y_0);
127
0
      sum[3] = MAC16_16(sum[3],tmp,y_1);
128
0
   }
129
2.74G
}
Unexecuted instantiation: celt.c:xcorr_kernel_c
Unexecuted instantiation: celt_decoder.c:xcorr_kernel_c
pitch.c:xcorr_kernel_c
Line
Count
Source
66
1.33G
{
67
1.33G
   int j;
68
1.33G
   opus_val16 y_0, y_1, y_2, y_3;
69
1.33G
   celt_assert(len>=3);
70
1.33G
   y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */
71
1.33G
   y_0=*y++;
72
1.33G
   y_1=*y++;
73
1.33G
   y_2=*y++;
74
32.4G
   for (j=0;j<len-3;j+=4)
75
31.1G
   {
76
31.1G
      opus_val16 tmp;
77
31.1G
      tmp = *x++;
78
31.1G
      y_3=*y++;
79
31.1G
      sum[0] = MAC16_16(sum[0],tmp,y_0);
80
31.1G
      sum[1] = MAC16_16(sum[1],tmp,y_1);
81
31.1G
      sum[2] = MAC16_16(sum[2],tmp,y_2);
82
31.1G
      sum[3] = MAC16_16(sum[3],tmp,y_3);
83
31.1G
      tmp=*x++;
84
31.1G
      y_0=*y++;
85
31.1G
      sum[0] = MAC16_16(sum[0],tmp,y_1);
86
31.1G
      sum[1] = MAC16_16(sum[1],tmp,y_2);
87
31.1G
      sum[2] = MAC16_16(sum[2],tmp,y_3);
88
31.1G
      sum[3] = MAC16_16(sum[3],tmp,y_0);
89
31.1G
      tmp=*x++;
90
31.1G
      y_1=*y++;
91
31.1G
      sum[0] = MAC16_16(sum[0],tmp,y_2);
92
31.1G
      sum[1] = MAC16_16(sum[1],tmp,y_3);
93
31.1G
      sum[2] = MAC16_16(sum[2],tmp,y_0);
94
31.1G
      sum[3] = MAC16_16(sum[3],tmp,y_1);
95
31.1G
      tmp=*x++;
96
31.1G
      y_2=*y++;
97
31.1G
      sum[0] = MAC16_16(sum[0],tmp,y_3);
98
31.1G
      sum[1] = MAC16_16(sum[1],tmp,y_0);
99
31.1G
      sum[2] = MAC16_16(sum[2],tmp,y_1);
100
31.1G
      sum[3] = MAC16_16(sum[3],tmp,y_2);
101
31.1G
   }
102
1.33G
   if (j++<len)
103
140M
   {
104
140M
      opus_val16 tmp = *x++;
105
140M
      y_3=*y++;
106
140M
      sum[0] = MAC16_16(sum[0],tmp,y_0);
107
140M
      sum[1] = MAC16_16(sum[1],tmp,y_1);
108
140M
      sum[2] = MAC16_16(sum[2],tmp,y_2);
109
140M
      sum[3] = MAC16_16(sum[3],tmp,y_3);
110
140M
   }
111
1.33G
   if (j++<len)
112
140M
   {
113
140M
      opus_val16 tmp=*x++;
114
140M
      y_0=*y++;
115
140M
      sum[0] = MAC16_16(sum[0],tmp,y_1);
116
140M
      sum[1] = MAC16_16(sum[1],tmp,y_2);
117
140M
      sum[2] = MAC16_16(sum[2],tmp,y_3);
118
140M
      sum[3] = MAC16_16(sum[3],tmp,y_0);
119
140M
   }
120
1.33G
   if (j<len)
121
0
   {
122
0
      opus_val16 tmp=*x++;
123
0
      y_1=*y++;
124
0
      sum[0] = MAC16_16(sum[0],tmp,y_2);
125
0
      sum[1] = MAC16_16(sum[1],tmp,y_3);
126
0
      sum[2] = MAC16_16(sum[2],tmp,y_0);
127
0
      sum[3] = MAC16_16(sum[3],tmp,y_1);
128
0
   }
129
1.33G
}
celt_lpc.c:xcorr_kernel_c
Line
Count
Source
66
13.6M
{
67
13.6M
   int j;
68
13.6M
   opus_val16 y_0, y_1, y_2, y_3;
69
13.6M
   celt_assert(len>=3);
70
13.6M
   y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */
71
13.6M
   y_0=*y++;
72
13.6M
   y_1=*y++;
73
13.6M
   y_2=*y++;
74
95.6M
   for (j=0;j<len-3;j+=4)
75
82.0M
   {
76
82.0M
      opus_val16 tmp;
77
82.0M
      tmp = *x++;
78
82.0M
      y_3=*y++;
79
82.0M
      sum[0] = MAC16_16(sum[0],tmp,y_0);
80
82.0M
      sum[1] = MAC16_16(sum[1],tmp,y_1);
81
82.0M
      sum[2] = MAC16_16(sum[2],tmp,y_2);
82
82.0M
      sum[3] = MAC16_16(sum[3],tmp,y_3);
83
82.0M
      tmp=*x++;
84
82.0M
      y_0=*y++;
85
82.0M
      sum[0] = MAC16_16(sum[0],tmp,y_1);
86
82.0M
      sum[1] = MAC16_16(sum[1],tmp,y_2);
87
82.0M
      sum[2] = MAC16_16(sum[2],tmp,y_3);
88
82.0M
      sum[3] = MAC16_16(sum[3],tmp,y_0);
89
82.0M
      tmp=*x++;
90
82.0M
      y_1=*y++;
91
82.0M
      sum[0] = MAC16_16(sum[0],tmp,y_2);
92
82.0M
      sum[1] = MAC16_16(sum[1],tmp,y_3);
93
82.0M
      sum[2] = MAC16_16(sum[2],tmp,y_0);
94
82.0M
      sum[3] = MAC16_16(sum[3],tmp,y_1);
95
82.0M
      tmp=*x++;
96
82.0M
      y_2=*y++;
97
82.0M
      sum[0] = MAC16_16(sum[0],tmp,y_3);
98
82.0M
      sum[1] = MAC16_16(sum[1],tmp,y_0);
99
82.0M
      sum[2] = MAC16_16(sum[2],tmp,y_1);
100
82.0M
      sum[3] = MAC16_16(sum[3],tmp,y_2);
101
82.0M
   }
102
13.6M
   if (j++<len)
103
0
   {
104
0
      opus_val16 tmp = *x++;
105
0
      y_3=*y++;
106
0
      sum[0] = MAC16_16(sum[0],tmp,y_0);
107
0
      sum[1] = MAC16_16(sum[1],tmp,y_1);
108
0
      sum[2] = MAC16_16(sum[2],tmp,y_2);
109
0
      sum[3] = MAC16_16(sum[3],tmp,y_3);
110
0
   }
111
13.6M
   if (j++<len)
112
0
   {
113
0
      opus_val16 tmp=*x++;
114
0
      y_0=*y++;
115
0
      sum[0] = MAC16_16(sum[0],tmp,y_1);
116
0
      sum[1] = MAC16_16(sum[1],tmp,y_2);
117
0
      sum[2] = MAC16_16(sum[2],tmp,y_3);
118
0
      sum[3] = MAC16_16(sum[3],tmp,y_0);
119
0
   }
120
13.6M
   if (j<len)
121
0
   {
122
0
      opus_val16 tmp=*x++;
123
0
      y_1=*y++;
124
0
      sum[0] = MAC16_16(sum[0],tmp,y_2);
125
0
      sum[1] = MAC16_16(sum[1],tmp,y_3);
126
0
      sum[2] = MAC16_16(sum[2],tmp,y_0);
127
0
      sum[3] = MAC16_16(sum[3],tmp,y_1);
128
0
   }
129
13.6M
}
Unexecuted instantiation: vq.c:xcorr_kernel_c
Unexecuted instantiation: x86cpu.c:xcorr_kernel_c
x86_celt_map.c:xcorr_kernel_c
Line
Count
Source
66
350M
{
67
350M
   int j;
68
350M
   opus_val16 y_0, y_1, y_2, y_3;
69
350M
   celt_assert(len>=3);
70
350M
   y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */
71
350M
   y_0=*y++;
72
350M
   y_1=*y++;
73
350M
   y_2=*y++;
74
4.67G
   for (j=0;j<len-3;j+=4)
75
4.32G
   {
76
4.32G
      opus_val16 tmp;
77
4.32G
      tmp = *x++;
78
4.32G
      y_3=*y++;
79
4.32G
      sum[0] = MAC16_16(sum[0],tmp,y_0);
80
4.32G
      sum[1] = MAC16_16(sum[1],tmp,y_1);
81
4.32G
      sum[2] = MAC16_16(sum[2],tmp,y_2);
82
4.32G
      sum[3] = MAC16_16(sum[3],tmp,y_3);
83
4.32G
      tmp=*x++;
84
4.32G
      y_0=*y++;
85
4.32G
      sum[0] = MAC16_16(sum[0],tmp,y_1);
86
4.32G
      sum[1] = MAC16_16(sum[1],tmp,y_2);
87
4.32G
      sum[2] = MAC16_16(sum[2],tmp,y_3);
88
4.32G
      sum[3] = MAC16_16(sum[3],tmp,y_0);
89
4.32G
      tmp=*x++;
90
4.32G
      y_1=*y++;
91
4.32G
      sum[0] = MAC16_16(sum[0],tmp,y_2);
92
4.32G
      sum[1] = MAC16_16(sum[1],tmp,y_3);
93
4.32G
      sum[2] = MAC16_16(sum[2],tmp,y_0);
94
4.32G
      sum[3] = MAC16_16(sum[3],tmp,y_1);
95
4.32G
      tmp=*x++;
96
4.32G
      y_2=*y++;
97
4.32G
      sum[0] = MAC16_16(sum[0],tmp,y_3);
98
4.32G
      sum[1] = MAC16_16(sum[1],tmp,y_0);
99
4.32G
      sum[2] = MAC16_16(sum[2],tmp,y_1);
100
4.32G
      sum[3] = MAC16_16(sum[3],tmp,y_2);
101
4.32G
   }
102
350M
   if (j++<len)
103
0
   {
104
0
      opus_val16 tmp = *x++;
105
0
      y_3=*y++;
106
0
      sum[0] = MAC16_16(sum[0],tmp,y_0);
107
0
      sum[1] = MAC16_16(sum[1],tmp,y_1);
108
0
      sum[2] = MAC16_16(sum[2],tmp,y_2);
109
0
      sum[3] = MAC16_16(sum[3],tmp,y_3);
110
0
   }
111
350M
   if (j++<len)
112
0
   {
113
0
      opus_val16 tmp=*x++;
114
0
      y_0=*y++;
115
0
      sum[0] = MAC16_16(sum[0],tmp,y_1);
116
0
      sum[1] = MAC16_16(sum[1],tmp,y_2);
117
0
      sum[2] = MAC16_16(sum[2],tmp,y_3);
118
0
      sum[3] = MAC16_16(sum[3],tmp,y_0);
119
0
   }
120
350M
   if (j<len)
121
0
   {
122
0
      opus_val16 tmp=*x++;
123
0
      y_1=*y++;
124
0
      sum[0] = MAC16_16(sum[0],tmp,y_2);
125
0
      sum[1] = MAC16_16(sum[1],tmp,y_3);
126
0
      sum[2] = MAC16_16(sum[2],tmp,y_0);
127
0
      sum[3] = MAC16_16(sum[3],tmp,y_1);
128
0
   }
129
350M
}
Unexecuted instantiation: pitch_sse2.c:xcorr_kernel_c
celt_lpc_sse4_1.c:xcorr_kernel_c
Line
Count
Source
66
22.0M
{
67
22.0M
   int j;
68
22.0M
   opus_val16 y_0, y_1, y_2, y_3;
69
22.0M
   celt_assert(len>=3);
70
22.0M
   y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */
71
22.0M
   y_0=*y++;
72
22.0M
   y_1=*y++;
73
22.0M
   y_2=*y++;
74
154M
   for (j=0;j<len-3;j+=4)
75
132M
   {
76
132M
      opus_val16 tmp;
77
132M
      tmp = *x++;
78
132M
      y_3=*y++;
79
132M
      sum[0] = MAC16_16(sum[0],tmp,y_0);
80
132M
      sum[1] = MAC16_16(sum[1],tmp,y_1);
81
132M
      sum[2] = MAC16_16(sum[2],tmp,y_2);
82
132M
      sum[3] = MAC16_16(sum[3],tmp,y_3);
83
132M
      tmp=*x++;
84
132M
      y_0=*y++;
85
132M
      sum[0] = MAC16_16(sum[0],tmp,y_1);
86
132M
      sum[1] = MAC16_16(sum[1],tmp,y_2);
87
132M
      sum[2] = MAC16_16(sum[2],tmp,y_3);
88
132M
      sum[3] = MAC16_16(sum[3],tmp,y_0);
89
132M
      tmp=*x++;
90
132M
      y_1=*y++;
91
132M
      sum[0] = MAC16_16(sum[0],tmp,y_2);
92
132M
      sum[1] = MAC16_16(sum[1],tmp,y_3);
93
132M
      sum[2] = MAC16_16(sum[2],tmp,y_0);
94
132M
      sum[3] = MAC16_16(sum[3],tmp,y_1);
95
132M
      tmp=*x++;
96
132M
      y_2=*y++;
97
132M
      sum[0] = MAC16_16(sum[0],tmp,y_3);
98
132M
      sum[1] = MAC16_16(sum[1],tmp,y_0);
99
132M
      sum[2] = MAC16_16(sum[2],tmp,y_1);
100
132M
      sum[3] = MAC16_16(sum[3],tmp,y_2);
101
132M
   }
102
22.0M
   if (j++<len)
103
0
   {
104
0
      opus_val16 tmp = *x++;
105
0
      y_3=*y++;
106
0
      sum[0] = MAC16_16(sum[0],tmp,y_0);
107
0
      sum[1] = MAC16_16(sum[1],tmp,y_1);
108
0
      sum[2] = MAC16_16(sum[2],tmp,y_2);
109
0
      sum[3] = MAC16_16(sum[3],tmp,y_3);
110
0
   }
111
22.0M
   if (j++<len)
112
0
   {
113
0
      opus_val16 tmp=*x++;
114
0
      y_0=*y++;
115
0
      sum[0] = MAC16_16(sum[0],tmp,y_1);
116
0
      sum[1] = MAC16_16(sum[1],tmp,y_2);
117
0
      sum[2] = MAC16_16(sum[2],tmp,y_3);
118
0
      sum[3] = MAC16_16(sum[3],tmp,y_0);
119
0
   }
120
22.0M
   if (j<len)
121
0
   {
122
0
      opus_val16 tmp=*x++;
123
0
      y_1=*y++;
124
0
      sum[0] = MAC16_16(sum[0],tmp,y_2);
125
0
      sum[1] = MAC16_16(sum[1],tmp,y_3);
126
0
      sum[2] = MAC16_16(sum[2],tmp,y_0);
127
0
      sum[3] = MAC16_16(sum[3],tmp,y_1);
128
0
   }
129
22.0M
}
pitch_sse4_1.c:xcorr_kernel_c
Line
Count
Source
66
1.02G
{
67
1.02G
   int j;
68
1.02G
   opus_val16 y_0, y_1, y_2, y_3;
69
1.02G
   celt_assert(len>=3);
70
1.02G
   y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */
71
1.02G
   y_0=*y++;
72
1.02G
   y_1=*y++;
73
1.02G
   y_2=*y++;
74
28.0G
   for (j=0;j<len-3;j+=4)
75
27.0G
   {
76
27.0G
      opus_val16 tmp;
77
27.0G
      tmp = *x++;
78
27.0G
      y_3=*y++;
79
27.0G
      sum[0] = MAC16_16(sum[0],tmp,y_0);
80
27.0G
      sum[1] = MAC16_16(sum[1],tmp,y_1);
81
27.0G
      sum[2] = MAC16_16(sum[2],tmp,y_2);
82
27.0G
      sum[3] = MAC16_16(sum[3],tmp,y_3);
83
27.0G
      tmp=*x++;
84
27.0G
      y_0=*y++;
85
27.0G
      sum[0] = MAC16_16(sum[0],tmp,y_1);
86
27.0G
      sum[1] = MAC16_16(sum[1],tmp,y_2);
87
27.0G
      sum[2] = MAC16_16(sum[2],tmp,y_3);
88
27.0G
      sum[3] = MAC16_16(sum[3],tmp,y_0);
89
27.0G
      tmp=*x++;
90
27.0G
      y_1=*y++;
91
27.0G
      sum[0] = MAC16_16(sum[0],tmp,y_2);
92
27.0G
      sum[1] = MAC16_16(sum[1],tmp,y_3);
93
27.0G
      sum[2] = MAC16_16(sum[2],tmp,y_0);
94
27.0G
      sum[3] = MAC16_16(sum[3],tmp,y_1);
95
27.0G
      tmp=*x++;
96
27.0G
      y_2=*y++;
97
27.0G
      sum[0] = MAC16_16(sum[0],tmp,y_3);
98
27.0G
      sum[1] = MAC16_16(sum[1],tmp,y_0);
99
27.0G
      sum[2] = MAC16_16(sum[2],tmp,y_1);
100
27.0G
      sum[3] = MAC16_16(sum[3],tmp,y_2);
101
27.0G
   }
102
1.02G
   if (j++<len)
103
140M
   {
104
140M
      opus_val16 tmp = *x++;
105
140M
      y_3=*y++;
106
140M
      sum[0] = MAC16_16(sum[0],tmp,y_0);
107
140M
      sum[1] = MAC16_16(sum[1],tmp,y_1);
108
140M
      sum[2] = MAC16_16(sum[2],tmp,y_2);
109
140M
      sum[3] = MAC16_16(sum[3],tmp,y_3);
110
140M
   }
111
1.02G
   if (j++<len)
112
140M
   {
113
140M
      opus_val16 tmp=*x++;
114
140M
      y_0=*y++;
115
140M
      sum[0] = MAC16_16(sum[0],tmp,y_1);
116
140M
      sum[1] = MAC16_16(sum[1],tmp,y_2);
117
140M
      sum[2] = MAC16_16(sum[2],tmp,y_3);
118
140M
      sum[3] = MAC16_16(sum[3],tmp,y_0);
119
140M
   }
120
1.02G
   if (j<len)
121
0
   {
122
0
      opus_val16 tmp=*x++;
123
0
      y_1=*y++;
124
0
      sum[0] = MAC16_16(sum[0],tmp,y_2);
125
0
      sum[1] = MAC16_16(sum[1],tmp,y_3);
126
0
      sum[2] = MAC16_16(sum[2],tmp,y_0);
127
0
      sum[3] = MAC16_16(sum[3],tmp,y_1);
128
0
   }
129
1.02G
}
Unexecuted instantiation: bands.c:xcorr_kernel_c
Unexecuted instantiation: opus_encoder.c:xcorr_kernel_c
Unexecuted instantiation: opus_multistream_encoder.c:xcorr_kernel_c
Unexecuted instantiation: celt_encoder.c:xcorr_kernel_c
Unexecuted instantiation: pitch_analysis_core_FIX.c:xcorr_kernel_c
Unexecuted instantiation: vector_ops_FIX.c:xcorr_kernel_c
Unexecuted instantiation: x86_silk_map.c:xcorr_kernel_c
Unexecuted instantiation: burg_modified_FIX.c:xcorr_kernel_c
Unexecuted instantiation: vector_ops_FIX_sse4_1.c:xcorr_kernel_c
Unexecuted instantiation: burg_modified_FIX_sse4_1.c:xcorr_kernel_c
Unexecuted instantiation: pitch_sse.c:xcorr_kernel_c
Unexecuted instantiation: pitch_avx.c:xcorr_kernel_c
Unexecuted instantiation: pitch_analysis_core_FLP.c:xcorr_kernel_c
130
131
#ifndef OVERRIDE_XCORR_KERNEL
132
#define xcorr_kernel(x, y, sum, len, arch) \
133
    ((void)(arch),xcorr_kernel_c(x, y, sum, len))
134
#endif /* OVERRIDE_XCORR_KERNEL */
135
136
137
static OPUS_INLINE void dual_inner_prod_c(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02,
138
      int N, opus_val32 *xy1, opus_val32 *xy2)
139
52.9M
{
140
52.9M
   int i;
141
52.9M
   opus_val32 xy01=0;
142
52.9M
   opus_val32 xy02=0;
143
19.0G
   for (i=0;i<N;i++)
144
18.9G
   {
145
18.9G
      xy01 = MAC16_16(xy01, x[i], y01[i]);
146
18.9G
      xy02 = MAC16_16(xy02, x[i], y02[i]);
147
18.9G
   }
148
52.9M
   *xy1 = xy01;
149
52.9M
   *xy2 = xy02;
150
52.9M
}
Unexecuted instantiation: celt.c:dual_inner_prod_c
Unexecuted instantiation: celt_decoder.c:dual_inner_prod_c
pitch.c:dual_inner_prod_c
Line
Count
Source
139
52.9M
{
140
52.9M
   int i;
141
52.9M
   opus_val32 xy01=0;
142
52.9M
   opus_val32 xy02=0;
143
19.0G
   for (i=0;i<N;i++)
144
18.9G
   {
145
18.9G
      xy01 = MAC16_16(xy01, x[i], y01[i]);
146
18.9G
      xy02 = MAC16_16(xy02, x[i], y02[i]);
147
18.9G
   }
148
52.9M
   *xy1 = xy01;
149
52.9M
   *xy2 = xy02;
150
52.9M
}
Unexecuted instantiation: celt_lpc.c:dual_inner_prod_c
Unexecuted instantiation: vq.c:dual_inner_prod_c
Unexecuted instantiation: x86cpu.c:dual_inner_prod_c
Unexecuted instantiation: x86_celt_map.c:dual_inner_prod_c
Unexecuted instantiation: pitch_sse2.c:dual_inner_prod_c
Unexecuted instantiation: celt_lpc_sse4_1.c:dual_inner_prod_c
Unexecuted instantiation: pitch_sse4_1.c:dual_inner_prod_c
Unexecuted instantiation: bands.c:dual_inner_prod_c
Unexecuted instantiation: opus_encoder.c:dual_inner_prod_c
Unexecuted instantiation: opus_multistream_encoder.c:dual_inner_prod_c
Unexecuted instantiation: celt_encoder.c:dual_inner_prod_c
Unexecuted instantiation: pitch_analysis_core_FIX.c:dual_inner_prod_c
Unexecuted instantiation: vector_ops_FIX.c:dual_inner_prod_c
Unexecuted instantiation: x86_silk_map.c:dual_inner_prod_c
Unexecuted instantiation: burg_modified_FIX.c:dual_inner_prod_c
Unexecuted instantiation: vector_ops_FIX_sse4_1.c:dual_inner_prod_c
Unexecuted instantiation: burg_modified_FIX_sse4_1.c:dual_inner_prod_c
Unexecuted instantiation: pitch_sse.c:dual_inner_prod_c
Unexecuted instantiation: pitch_avx.c:dual_inner_prod_c
Unexecuted instantiation: pitch_analysis_core_FLP.c:dual_inner_prod_c
151
152
#ifndef OVERRIDE_DUAL_INNER_PROD
153
# define dual_inner_prod(x, y01, y02, N, xy1, xy2, arch) \
154
68.8M
    ((void)(arch),dual_inner_prod_c(x, y01, y02, N, xy1, xy2))
155
#endif
156
157
/*We make sure a C version is always available for cases where the overhead of
158
  vectorization and passing around an arch flag aren't worth it.*/
159
static OPUS_INLINE opus_val32 celt_inner_prod_c(const opus_val16 *x,
160
      const opus_val16 *y, int N)
161
295M
{
162
295M
   int i;
163
295M
   opus_val32 xy=0;
164
12.8G
   for (i=0;i<N;i++)
165
12.5G
      xy = MAC16_16(xy, x[i], y[i]);
166
295M
   return xy;
167
295M
}
Unexecuted instantiation: celt.c:celt_inner_prod_c
Unexecuted instantiation: celt_decoder.c:celt_inner_prod_c
Unexecuted instantiation: pitch.c:celt_inner_prod_c
Unexecuted instantiation: celt_lpc.c:celt_inner_prod_c
Unexecuted instantiation: vq.c:celt_inner_prod_c
Unexecuted instantiation: x86cpu.c:celt_inner_prod_c
x86_celt_map.c:celt_inner_prod_c
Line
Count
Source
161
295M
{
162
295M
   int i;
163
295M
   opus_val32 xy=0;
164
12.8G
   for (i=0;i<N;i++)
165
12.5G
      xy = MAC16_16(xy, x[i], y[i]);
166
295M
   return xy;
167
295M
}
Unexecuted instantiation: pitch_sse2.c:celt_inner_prod_c
Unexecuted instantiation: celt_lpc_sse4_1.c:celt_inner_prod_c
Unexecuted instantiation: pitch_sse4_1.c:celt_inner_prod_c
Unexecuted instantiation: bands.c:celt_inner_prod_c
Unexecuted instantiation: opus_encoder.c:celt_inner_prod_c
Unexecuted instantiation: opus_multistream_encoder.c:celt_inner_prod_c
Unexecuted instantiation: celt_encoder.c:celt_inner_prod_c
Unexecuted instantiation: pitch_analysis_core_FIX.c:celt_inner_prod_c
Unexecuted instantiation: vector_ops_FIX.c:celt_inner_prod_c
Unexecuted instantiation: x86_silk_map.c:celt_inner_prod_c
Unexecuted instantiation: burg_modified_FIX.c:celt_inner_prod_c
Unexecuted instantiation: vector_ops_FIX_sse4_1.c:celt_inner_prod_c
Unexecuted instantiation: burg_modified_FIX_sse4_1.c:celt_inner_prod_c
Unexecuted instantiation: pitch_sse.c:celt_inner_prod_c
Unexecuted instantiation: pitch_avx.c:celt_inner_prod_c
Unexecuted instantiation: pitch_analysis_core_FLP.c:celt_inner_prod_c
168
169
#if !defined(OVERRIDE_CELT_INNER_PROD)
170
# define celt_inner_prod(x, y, N, arch) \
171
    ((void)(arch),celt_inner_prod_c(x, y, N))
172
#endif
173
174
#ifdef NON_STATIC_COMB_FILTER_CONST_C
175
void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N,
176
     opus_val16 g10, opus_val16 g11, opus_val16 g12);
177
#endif
178
179
180
#ifdef FIXED_POINT
181
opus_val32
182
#else
183
void
184
#endif
185
celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
186
      opus_val32 *xcorr, int len, int max_pitch, int arch);
187
188
#ifndef OVERRIDE_PITCH_XCORR
189
638M
# define celt_pitch_xcorr celt_pitch_xcorr_c
190
#endif
191
192
#ifdef NON_STATIC_COMB_FILTER_CONST_C
193
void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N,
194
                         opus_val16 g10, opus_val16 g11, opus_val16 g12);
195
#endif
196
197
#ifndef OVERRIDE_COMB_FILTER_CONST
198
# define comb_filter_const(y, x, T, N, g10, g11, g12, arch) \
199
1.10M
    ((void)(arch),comb_filter_const_c(y, x, T, N, g10, g11, g12))
200
#endif
201
202
203
#endif