[FFmpeg-devel] [PATCH] ac3enc: Add x86-optimized function to speed up log2_tab().

Ronald S. Bultje rsbultje
Sun Feb 13 21:23:50 CET 2011


Hi,

On Sun, Feb 13, 2011 at 2:49 PM, Justin Ruggles
<justin.ruggles at gmail.com> wrote:
> AC3DSPContext.ac3_max_msb_abs_int16() finds the maximum MSB of the absolute
> value of each element in an array of int16_t.
[..]
> Athlon64 X2 6000+:
> ? C: 20718
> ?MMX: ?3590
> MMX2: ?2906
> SSE2: ?2062
>
> Atom 330:
> ? ?C: 31838
> ?MMX: ?7394
> ?SSE2: ?3138
> SSSE3: ?2759
>
> ?libavcodec/ac3dsp.c ? ? ? ? | ? ?9 +++++
> ?libavcodec/ac3dsp.h ? ? ? ? | ? 11 +++++++
> ?libavcodec/ac3enc_fixed.c ? | ? 11 ++-----
> ?libavcodec/x86/ac3dsp.asm ? | ? 69 +++++++++++++++++++++++++++++++++++++++++++
> ?libavcodec/x86/ac3dsp_mmx.c | ? 11 +++++++
> ?5 files changed, 103 insertions(+), 8 deletions(-)

That looks really good, OK from me. I'll queue it and push later today
if there's no objections.

Ronald



More information about the ffmpeg-devel mailing list