Commit d9c12842 authored by michael's avatar michael

add "memory" to the clobber list we change memory so we need it, this also...

add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6679 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2fbca8e4
......@@ -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 */
......
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