Commit 22267ef1 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Better name for log10_approx: fast_log10.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 0a2c6006
......@@ -228,7 +228,7 @@ window_hamming (double x) /* sharp (rectangle) cutoffs at boundaries */
* glibc log2f is a lot faster than glibc log10
*/
inline double
log10_approx (double l)
fast_log10 (double l)
{
constexpr double log2_log10_factor = 0.3010299956639811952; // 1 / log2 (10)
......@@ -240,7 +240,7 @@ db_from_factor (double factor, double min_dB)
{
if (factor > 0)
{
double dB = log10_approx (factor); /* Bell */
double dB = fast_log10 (factor); /* Bell */
dB *= 20;
return dB;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment