Browse Source

fix !CMOV_IS_FAST case (iam not really happy with the fix but i didnt come up with a better one quickly)

Originally committed as revision 6707 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
165c5f0909
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/cabac.h

+ 2
- 1
libavcodec/cabac.h View File

@@ -470,13 +470,14 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state
"subl %%edx, %%ebx \n\t"
"xorl %%ecx, %%eax \n\t"
#else /* CMOV_IS_FAST */
FIXTHIS
"movl %%edx, %%ecx \n\t"
"shl $17, %%edx \n\t"
"subl %%ebx, %%edx \n\t"
"sarl $31, %%edx \n\t" //lps_mask
"subl %%ecx, %%esi \n\t" //RangeLPS - range
"andl %%edx, %%esi \n\t" //(RangeLPS - range)&lps_mask
"addl %%ecx, %%esi \n\t" //new range
"shl $17, %%ecx \n\t"
"andl %%edx, %%ecx \n\t"
"subl %%ecx, %%ebx \n\t"
"xorl %%edx, %%eax \n\t"


Loading…
Cancel
Save