[FFmpeg-devel] [PATCH 3/5] x86: dwt: better share constants
Christophe Gisquet
christophe.gisquet at gmail.com
Wed Aug 6 09:43:41 CEST 2014
---
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
--
1.9.2.msysgit.0
More information about the ffmpeg-devel
mailing list