[FFmpeg-cvslog] x86: dwt: better share constants
Christophe Gisquet
git at videolan.org
Wed Aug 6 19:44:36 CEST 2014
ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Wed Aug 6 07:43:41 2014 +0000| [6622a6cff30ff7dc56bc641bba6a17e2cda1ac82] | committer: Michael Niedermayer
x86: dwt: better share constants
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6622a6cff30ff7dc56bc641bba6a17e2cda1ac82
---
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 c85a54e..f73a9f2 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 1d8e793..658acc1 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
More information about the ffmpeg-cvslog
mailing list