[FFmpeg-devel] [PATCH 2/2] ac3enc: add SIMD-optimized shifting functions for use with the fixed-point AC3 encoder.

Justin Ruggles justin.ruggles
Sat Mar 12 15:50:30 CET 2011


---
Moved the shift>0 check out of the ac3dsp functions since it is not needed
for ac3_rshift_int32().

The x86 asm versions no longer benefit from ALIGN 8 after then shift>0 check
was removed (only tested on x86-64).

Unrolled the C versions, which makes them twice as fast on Athlon64.

 libavcodec/ac3dsp.c         |   42 ++++++++++++++++++++++++++++++++++++++++
 libavcodec/ac3dsp.h         |   22 +++++++++++++++++++++
 libavcodec/ac3enc_fixed.c   |   41 +++-----------------------------------
 libavcodec/x86/ac3dsp.asm   |   45 +++++++++++++++++++++++++++++++++++++++++++
 libavcodec/x86/ac3dsp_mmx.c |   12 +++++++++++
 5 files changed, 125 insertions(+), 37 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ac3enc-add-SIMD-optimized-shifting-functions-for-use.patch
Type: text/x-patch
Size: 8623 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110312/f562ee5a/attachment.bin>



More information about the ffmpeg-devel mailing list