Commit 3db8be25 authored by michael's avatar michael

moving lps state transition code a little up in the branched asm code (1% faster on P3)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6658 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c00008d3
......@@ -405,11 +405,11 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"subl %%edx, %%ebx \n\t"
"movl %%esi, %%edx \n\t"
"shr $19, %%esi \n\t"
"movzbl "MANGLE(ff_h264_lps_state)"(%%eax), %%ecx \n\t"
"movb %%cl, (%1) \n\t"
"movzbl " MANGLE(ff_h264_norm_shift) "(%%esi), %%ecx \n\t"
"shll %%cl, %%ebx \n\t"
"shll %%cl, %%edx \n\t"
"movzbl "MANGLE(ff_h264_lps_state)"(%%eax), %%ecx \n\t"
"movb %%cl, (%1) \n\t"
"addl $1, %%eax \n\t"
"test %%bx, %%bx \n\t"
" jnz 2f \n\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment