[FFmpeg-devel] [PATCH] WMA: use type punning and unroll loops in decode_exp_vlc()

Måns Rullgård mans
Tue Sep 29 10:10:49 CEST 2009


Mans Rullgard <mans at mansr.com> writes:

> GCC does stupid things if these assignments are done using floats
> directly, so fill the runs using integer operations instead.  Also
> unroll the loops since the length is always a multiple of 4.
> ---
>  libavcodec/wmadec.c |   22 ++++++++++++++++------
>  1 files changed, 16 insertions(+), 6 deletions(-)
>
> +        iv = AV_RN32(ptab + last_exp);

I don't know what I was thinking when I wrote that.  I've changed it
to use a uint32_t pointer instead.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list