aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/hevc_mc.asm
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-02-04 11:41:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-07 17:48:14 +0100
commited450d4acfc9fea0dae2df2b0a543ec0d602d31a (patch)
tree8228bf68a0ede5d53dc1c24c8a02bc804634998c /libavcodec/x86/hevc_mc.asm
parentac923ed47002092e16e3fbd252f607e1d68a9106 (diff)
downloadffmpeg-ed450d4acfc9fea0dae2df2b0a543ec0d602d31a.tar.gz
x86: lavc: share more constant through defines
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/hevc_mc.asm')
-rw-r--r--libavcodec/x86/hevc_mc.asm21
1 files changed, 14 insertions, 7 deletions
diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm
index 2b016f6f95..b16f3b48cf 100644
--- a/libavcodec/x86/hevc_mc.asm
+++ b/libavcodec/x86/hevc_mc.asm
@@ -21,14 +21,21 @@
%include "libavutil/x86/x86util.asm"
SECTION_RODATA 32
-pw_8: times 16 dw (1 << 9)
-pw_10: times 16 dw (1 << 11)
-pw_12: times 16 dw (1 << 13)
+cextern pw_255
+cextern pw_512
+cextern pw_2048
+cextern pw_8192
+cextern pw_1023
+cextern pw_1024
+cextern pw_4096
+%define pw_8 pw_512
+%define pw_10 pw_2048
+%define pw_12 pw_8192
+%define pw_bi_10 pw_1024
+%define pw_bi_12 pw_4096
+%define max_pixels_8 pw_255
+%define max_pixels_10 pw_1023
pw_bi_8: times 16 dw (1 << 8)
-pw_bi_10: times 16 dw (1 << 10)
-pw_bi_12: times 16 dw (1 << 12)
-max_pixels_8: times 16 dw ((1 << 8)-1)
-max_pixels_10: times 16 dw ((1 << 10)-1)
max_pixels_12: times 16 dw ((1 << 12)-1)
cextern pd_1
cextern pb_0