ac3enc: Add x86-optimized function to speed up log2_tab().
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 13 Feb 2011 19:49:50 +0000 (14:49 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 14 Feb 2011 22:58:20 +0000 (23:58 +0100)
commit7539a1fee2c4935eb3318d625f881df85f2c9c04
tree79b531353a0c98dc0268ac0bc985284042f7236d
parente590448c65b7f9cd1a9bcf39ee6874882034edc9
ac3enc: Add x86-optimized function to speed up log2_tab().

AC3DSPContext.ac3_max_msb_abs_int16() finds the maximum MSB of the absolute
value of each element in an array of int16_t.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit fbb6b49dabc3398440c6dfa838aa090a7a6ebc0d)
libavcodec/ac3dsp.c
libavcodec/ac3dsp.h
libavcodec/ac3enc_fixed.c
libavcodec/x86/ac3dsp.asm
libavcodec/x86/ac3dsp_mmx.c