[FFmpeg-soc] [soc]: r4953 - amr/amrnbdec.c

cmcq subversion at mplayerhq.hu
Wed Aug 5 17:23:43 CEST 2009


Author: cmcq
Date: Wed Aug  5 17:23:43 2009
New Revision: 4953

Log:
exp2f is a bit faster than powf

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	Wed Aug  5 16:24:45 2009	(r4952)
+++ amr/amrnbdec.c	Wed Aug  5 17:23:43 2009	(r4953)
@@ -748,7 +748,8 @@ static void set_fixed_gain(AMRContext *p
     // ^g_c = ^gamma_gc * g_c' (equation 69)
     p->fixed_gain[4] = fixed_gain_factor *
         // Eqn 67: gc' = 10^0.05 (predicted dB + mean dB - dB of fixed vector)
-        powf(10.0, 0.05 * (ff_dot_productf(energy_pred_fac,
+        exp2f(log2f(10.0) * 0.05
+                        * (ff_dot_productf(energy_pred_fac,
                                            p->prediction_error,
                                            4) + // predicted fixed energy
                            energy_mean[mode])) /


More information about the FFmpeg-soc mailing list