mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 21:30:55 +00:00
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
This commit is contained in:
parent
ab0151d163
commit
f1b37db48d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user