changeset 11224:dd2b69794909 libavcodec

Replace log2f(10) with a constant
author mru
date Sat, 20 Feb 2010 20:13:48 +0000
parents a090d10c314f
children 5811a86f55f1
files acelp_pitch_delay.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/acelp_pitch_delay.c	Sat Feb 20 18:28:11 2010 +0000
+++ b/acelp_pitch_delay.c	Sat Feb 20 20:13:48 2010 +0000
@@ -128,7 +128,7 @@
     // ^g_c = ^gamma_gc * 100.05 (predicted dB + mean dB - dB of fixed vector)
     // Note 10^(0.05 * -10log(average x2)) = 1/sqrt((average x2)).
     float val = fixed_gain_factor *
-        exp2f(log2f(10.0) * 0.05 *
+        exp2f(M_LOG2_10 * 0.05 *
               (ff_dot_productf(pred_table, prediction_error, 4) +
                energy_mean)) /
         sqrtf(fixed_mean_energy);