replace call to powf with simple mul

This commit is contained in:
Bl00drav3n 2018-04-11 22:32:00 +02:00
parent c72e5b66db
commit 53b15e05b5

2
Tinn.c
View File

@ -8,7 +8,7 @@
// Error function. // Error function.
static float err(const float a, const float b) static float err(const float a, const float b)
{ {
return 0.5f * powf(a - b, 2.0f); return 0.5f * (a - b) * (a - b);
} }
// Partial derivative of error function. // Partial derivative of error function.