Commit f1b37db4 authored by Michael Niedermayer's avatar Michael Niedermayer

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)

Originally committed as revision 6616 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ab0151d1
......@@ -512,11 +512,11 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"1: \n\t"
"movl %%edx, "RANGE "(%2) \n\t"
"movl %%ebx, "LOW "(%2) \n\t"
"andl $1, %%eax \n\t"
:"=&a"(bit)
:"r"(state), "r"(c)
: "%ecx", "%ebx", "%edx", "%esi"
);
bit&=1;
#endif
#else
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