remove useless variable in coeffs in bw_hs2, bw_ls2

This commit is contained in:
Stefano D'Angelo 2023-02-05 19:39:04 +01:00
parent 0a56d74388
commit 850f787e15
2 changed files with 1 additions and 5 deletions

View File

@ -162,7 +162,6 @@ struct _bw_hs2_coeffs {
// Coefficients
float sg;
float isg;
float ssg;
// Parameters
@ -193,7 +192,6 @@ static inline void _bw_hs2_update_mm2_params(bw_hs2_coeffs *BW_RESTRICT coeffs)
if (coeffs->param_changed) {
if (coeffs->param_changed & _BW_HS2_PARAM_HIGH_GAIN) {
coeffs->sg = bw_sqrtf_2(coeffs->high_gain);
coeffs->isg = bw_rcpf_2(coeffs->sg);
coeffs->ssg = bw_sqrtf_2(coeffs->sg);
bw_mm2_set_coeff_x(&coeffs->mm2_coeffs, coeffs->sg);
bw_mm2_set_coeff_lp(&coeffs->mm2_coeffs, 1.f - coeffs->sg);

View File

@ -161,7 +161,6 @@ struct _bw_ls2_coeffs {
// Coefficients
float sg;
float isg;
float issg;
// Parameters
@ -192,8 +191,7 @@ static inline void _bw_ls2_update_mm2_params(bw_ls2_coeffs *BW_RESTRICT coeffs)
if (coeffs->param_changed) {
if (coeffs->param_changed & _BW_LS2_PARAM_DC_GAIN) {
coeffs->sg = bw_sqrtf_2(coeffs->dc_gain);
coeffs->isg = bw_rcpf_2(coeffs->sg);
coeffs->issg = bw_sqrtf_2(coeffs->isg);
coeffs->issg = bw_sqrtf_2(bw_rcpf_2(coeffs->sg));
bw_mm2_set_coeff_x(&coeffs->mm2_coeffs, coeffs->sg);
bw_mm2_set_coeff_lp(&coeffs->mm2_coeffs, coeffs->dc_gain - coeffs->sg);
bw_mm2_set_coeff_hp(&coeffs->mm2_coeffs, 1.f - coeffs->sg);