Commit 11055e0
committed
Audio: ASRC: Optimize for HiFi5 impulse response calculations
This patch optimizes for HiFi5 the polynomials evaluations to
calculate rate conversion FIR impulse responses. The functions
asrc_calc_impulse_response_n[4-7]() calculate with Horner's
method each coefficient of the FIR with 3th to 5th order
polynomial.
The header files with polynomials coefficients are re-ordered for
for direct 128 bits int32x4 loads. The loop is modified to calculate
four FIR coefficients per loop. Since there is no suitable quad-MAC
instruction found, the previous dual-MAC is used twice.
The saving is 11.6 MCPS, from 38.75 to 27.20 MCPS for 32 bits stereo
44.1 to 48 kHz conversion, push mode.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent 35cb65b commit 11055e0
2 files changed
+185
-112
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
148 | 193 | | |
149 | 194 | | |
150 | 195 | | |
| |||
188 | 233 | | |
189 | 234 | | |
190 | 235 | | |
| 236 | + | |
191 | 237 | | |
192 | 238 | | |
193 | 239 | | |
| |||
0 commit comments