changeset 11358:a1376a6f9af1 libavcodec

AAC: Mark predictor functions av_always_inline. This results in a 50% speedup on main profile with no increase in binary size.
author alexc
date Thu, 04 Mar 2010 04:58:43 +0000
parents 3b06c3d9e72d
children 471c370c6b05
files aac.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/aac.c	Thu Mar 04 02:32:48 2010 +0000
+++ b/aac.c	Thu Mar 04 04:58:43 2010 +0000
@@ -478,7 +478,7 @@
     return previous_val * 1664525 + 1013904223;
 }
 
-static void reset_predict_state(PredictorState *ps)
+static av_always_inline void reset_predict_state(PredictorState *ps)
 {
     ps->r0   = 0.0f;
     ps->r1   = 0.0f;
@@ -1247,7 +1247,7 @@
     return pun.f;
 }
 
-static void predict(AACContext *ac, PredictorState *ps, float *coef,
+static av_always_inline void predict(AACContext *ac, PredictorState *ps, float *coef,
                     int output_enable)
 {
     const float a     = 0.953125; // 61.0 / 64