aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/cabac.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-17 09:02:44 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-28 08:01:29 -0700
commit951014e5bb8a1c20865118bf5bdf5e4ee7eac265 (patch)
tree18a9355701a8a8b714dc1fd15aae66b623bce285 /libavcodec/x86/cabac.h
parenta0bdcb019e24f8a75ebef54289c4b8c015f77f41 (diff)
downloadffmpeg-951014e5bb8a1c20865118bf5bdf5e4ee7eac265.tar.gz
cabac: use struct+offset instead of memory operand in BRANCHLESS_GET_CABAC().
Diffstat (limited to 'libavcodec/x86/cabac.h')
-rw-r--r--libavcodec/x86/cabac.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/x86/cabac.h b/libavcodec/x86/cabac.h
index adf4fc39b2..e03a4dec9c 100644
--- a/libavcodec/x86/cabac.h
+++ b/libavcodec/x86/cabac.h
@@ -89,11 +89,11 @@ static av_always_inline int get_cabac_inline_x86(CABACContext *c,
int bit, tmp;
__asm__ volatile(
- BRANCHLESS_GET_CABAC("%0", "(%5)", "%1", "%w1", "%2",
- "%3", "%b3", "%4")
- :"=&r"(bit), "+&r"(c->low), "+&r"(c->range), "=&q"(tmp),
- "+m"(c->bytestream)
- :"r"(state)
+ BRANCHLESS_GET_CABAC("%0", "(%4)", "%1", "%w1",
+ "%2", "%3", "%b3", "%a6(%5)")
+ : "=&r"(bit), "+&r"(c->low), "+&r"(c->range), "=&q"(tmp)
+ : "r"(state), "r"(c),
+ "i"(offsetof(CABACContext, bytestream))
: "%"REG_c, "memory"
);
return bit & 1;