Improvement: approximation of math functions

This commit is contained in:
Antoine SOULIER
2022-04-20 14:55:46 +02:00
parent ddc6522790
commit 279da7b6d2
6 changed files with 210 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ static int estimate_gain(
x_max = fmaxf(x_max, x3);
float s2 = x0*x0 + x1*x1 + x2*x2 + x3*x3;
e[i] = 28.f/20 * 10 * (s2 > 0 ? log10f(s2) : -10);
e[i] = 28.f/20 * 10 * (s2 > 0 ? fast_log10f(s2) : -10);
}
/* --- Determine gain index --- */