diff x86/vp56_arith.h @ 12385:d0b25641338b libavcodec

VP5/6/8: ~7% faster arithmetic decoding Grab from the bitstream in 16-bit chunks instead of 8-bit chunks. TODO: grab in 32-bit chunks on 64-bit systems.
author darkshikari
date Thu, 12 Aug 2010 01:11:32 +0000
parents eba266986930
children
line wrap: on
line diff
--- a/x86/vp56_arith.h	Wed Aug 11 14:18:52 2010 +0000
+++ b/x86/vp56_arith.h	Thu Aug 12 01:11:32 2010 +0000
@@ -31,7 +31,7 @@
     unsigned int code_word = vp56_rac_renorm(c);
     unsigned int high = c->high;
     unsigned int low = 1 + (((high - 1) * prob) >> 8);
-    unsigned int low_shift = low << 8;
+    unsigned int low_shift = low << 16;
     int bit = 0;
 
     __asm__(