OSDN Git Service

CMOV-ify vp56 arithcoder
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 30 Jun 2010 23:18:47 +0000 (23:18 +0000)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 30 Jun 2010 23:18:47 +0000 (23:18 +0000)
commit36d6b545a1a5309b3d9223b0db40ad2879817af5
tree8ab9a00c790b8f413431e923be1a27beb4fa815c
parent2e6ed48d6e7525fceba5469e1512b20c7c5c3198
CMOV-ify vp56 arithcoder
This incantation causes gcc 4.3 to generate cmov on x86, a vastly better option
than a completely unpredictable branch.
Hopefully this carries over to newer versions and other CPUs with conditionals.
~5 cycles saved per call on a Core i7.

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