mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn
Originally committed as revision 6679 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f7bc5837ac
commit
12ff5b0f3b
@ -446,7 +446,7 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state
|
||||
"movl %%ebx, "LOW "(%2) \n\t"
|
||||
:"=&a"(bit) //FIXME this is fragile gcc either runs out of registers or misscompiles it (for example if "+a"(bit) or "+m"(*state) is used
|
||||
:"r"(state), "r"(c)
|
||||
: "%ecx", "%ebx", "%edx", "%esi"
|
||||
: "%ecx", "%ebx", "%edx", "%esi", "memory"
|
||||
);
|
||||
bit&=1;
|
||||
#else /* BRANCHLESS_CABAC_DECODER */
|
||||
@ -516,7 +516,7 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state
|
||||
"1: \n\t"
|
||||
:"=&a"(bit)
|
||||
:"r"(state), "r"(c)
|
||||
: "%ecx", "%ebx", "%edx", "%esi"
|
||||
: "%ecx", "%ebx", "%edx", "%esi", "memory"
|
||||
);
|
||||
bit&=1;
|
||||
#endif /* BRANCHLESS_CABAC_DECODER */
|
||||
|
Loading…
Reference in New Issue
Block a user