OSDN Git Service

Eliminate another redundant instruction in vp56/8 arithcoder
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 30 Jun 2010 23:59:27 +0000 (23:59 +0000)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 30 Jun 2010 23:59:27 +0000 (23:59 +0000)
commit4148855ee4f3506cc1f7341f688e5fa260a017d4
tree287a9818256f89a07e3bd5633b5ba632c57cda0a
parent2e79db01414b43e4dee26ad7834ba2f74fc6320a
Eliminate another redundant instruction in vp56/8 arithcoder
Necessary because of this GCC bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44474
To do this, convert some, but not all (!) of the variables in VP56RangeCoder
into local variables.
If we convert c->high into a local variable, gcc gets the stupids and refuses
to use a conditional move for the unpredictable main branch.

TODO: dispense with this bullshit and write an asm version.

Originally committed as revision 23924 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vp56.h