Mercurial > libavcodec.hg
changeset 4012:f8c649ac09dd libavcodec
add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn
author | michael |
---|---|
date | Thu, 12 Oct 2006 21:32:56 +0000 |
parents | 5bce97c30a69 |
children | aace6b74fddc |
files | cabac.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cabac.h Thu Oct 12 20:55:42 2006 +0000 +++ b/cabac.h Thu Oct 12 21:32:56 2006 +0000 @@ -446,7 +446,7 @@ "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 @@ "1: \n\t" :"=&a"(bit) :"r"(state), "r"(c) - : "%ecx", "%ebx", "%edx", "%esi" + : "%ecx", "%ebx", "%edx", "%esi", "memory" ); bit&=1; #endif /* BRANCHLESS_CABAC_DECODER */