Commit bf378771 authored by michael's avatar michael

move the &1 out of the asm so gcc can optimize it away in inlined cases (yes...

move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6616 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 59f3e76b
...@@ -512,11 +512,11 @@ static int get_cabac(CABACContext *c, uint8_t * const state){ ...@@ -512,11 +512,11 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"1: \n\t" "1: \n\t"
"movl %%edx, "RANGE "(%2) \n\t" "movl %%edx, "RANGE "(%2) \n\t"
"movl %%ebx, "LOW "(%2) \n\t" "movl %%ebx, "LOW "(%2) \n\t"
"andl $1, %%eax \n\t"
:"=&a"(bit) :"=&a"(bit)
:"r"(state), "r"(c) :"r"(state), "r"(c)
: "%ecx", "%ebx", "%edx", "%esi" : "%ecx", "%ebx", "%edx", "%esi"
); );
bit&=1;
#endif #endif
#else #else
int s = *state; int s = *state;
......
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