Lines Matching refs:energy
962 int32_t measure, max_measure, energy;
1019 /* Use the criteria (corr*corr)/energy to compare if
1054 abs(corr(vec1, vec2))/(sqrt(energy(vec1))*sqrt(energy(vec2)))
1135 energy = 0;
1173 energy += SPL_MUL_16_16_RSFT(plc_residual[i], plc_residual[i], (s->prevScale + 1));
1178 if (energy < SPL_SHIFT_W32(s->block_samples * 900, -s->prevScale - 1)) {
1179 energy = 0;
1214 int32_t cross_corr, energy;
1242 /* Introduce a scale factor on the energy in int32_t in
1252 /* Calculate the first energy, then do a +/- to get the other energies */
1253 energy = scale_dot_product(regressor, regressor, subl, shifts);
1261 if ((energy > 0) && (cross_corr > 0)) {
1262 /* Put cross correlation and energy on 16 bit word */
1265 energy_scale = norm_w32(energy) - 16;
1266 energy_mod = (int16_t) SPL_SHIFT_W32(energy, energy_scale);
1272 been performed on (cross_corr*cross_corr)/energy
1277 (cross_corr*cross_corr)/energy in the same domain
1307 /* Do a +/- to get the next energy */
1308 energy += (unsigned)step * ((*rp_end * *rp_end - *rp_beg * *rp_beg) >> shifts);