From 6622a6cff30ff7dc56bc641bba6a17e2cda1ac82 Mon Sep 17 00:00:00 2001 From: Christophe Gisquet Date: Wed, 6 Aug 2014 07:43:41 +0000 Subject: [PATCH] x86: dwt: better share constants Signed-off-by: Michael Niedermayer --- libavcodec/x86/constants.h | 1 + libavcodec/x86/dwt_yasm.asm | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/x86/constants.h b/libavcodec/x86/constants.h index c85a54e773..f73a9f26ec 100644 --- a/libavcodec/x86/constants.h +++ b/libavcodec/x86/constants.h @@ -25,6 +25,7 @@ #include "libavutil/x86/asm.h" +extern const xmm_reg ff_pw_1; extern const xmm_reg ff_pw_2; extern const xmm_reg ff_pw_3; extern const xmm_reg ff_pw_4; diff --git a/libavcodec/x86/dwt_yasm.asm b/libavcodec/x86/dwt_yasm.asm index 1d8e793e70..658acc13fc 100644 --- a/libavcodec/x86/dwt_yasm.asm +++ b/libavcodec/x86/dwt_yasm.asm @@ -22,12 +22,12 @@ %include "libavutil/x86/x86util.asm" SECTION_RODATA -pw_1: times 8 dw 1 -pw_8: times 8 dw 8 -pw_16: times 8 dw 16 pw_1991: times 4 dw 9,-1 +cextern pw_1 cextern pw_2 +cextern pw_8 +cextern pw_16 section .text