OSDN Git Service

optimize sign decoding code in decode_residual()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Oct 2006 01:19:03 +0000 (01:19 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Oct 2006 01:19:03 +0000 (01:19 +0000)
commitebd624b66256c93f66fa8d86a22fa50a3566ffd2
treea448a634dd66bfeb23a9166ca40cc9441d2b49a5
parent99fd05cbdd0460b3f0afc88532f1cf45815d18e2
optimize sign decoding code in decode_residual()
x86 is 4% faster on P3
C sign stuff + x86 code for everything else is also faster then before (sorry forgot to test pure C)
... and if i replace the second occurance of the sign decoding in decode_residual by the asm too then everything gets slower iam starting to think that it might be best to write the whole function in asm, playing this avoid random deoptimizations game with gcc is not fun at all

Originally committed as revision 6732 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cabac.h
libavcodec/h264.c