Commit 1b03e091 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ef5d41a5'

* commit 'ef5d41a5':
  x86inc: Rename "program_name" to "private_prefix"
  configure: Run SHFLAGS through ldflags_filter()

Conflicts:
	configure
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a5faae46 ef5d41a5
...@@ -4385,7 +4385,7 @@ LD_PATH=$LD_PATH ...@@ -4385,7 +4385,7 @@ LD_PATH=$LD_PATH
DLLTOOL=$dlltool DLLTOOL=$dlltool
LDFLAGS=$LDFLAGS LDFLAGS=$LDFLAGS
LDFLAGS-ffserver=$FFSERVERLDFLAGS LDFLAGS-ffserver=$FFSERVERLDFLAGS
SHFLAGS=$SHFLAGS SHFLAGS=$(echo $($ldflags_filter $SHFLAGS))
YASMFLAGS=$YASMFLAGS YASMFLAGS=$YASMFLAGS
BUILDSUF=$build_suffix BUILDSUF=$build_suffix
PROGSSUF=$progs_suffix PROGSSUF=$progs_suffix
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
; as this feature might be useful for others as well. Send patches or ideas ; as this feature might be useful for others as well. Send patches or ideas
; to x264-devel@videolan.org . ; to x264-devel@videolan.org .
%ifndef program_name %ifndef private_prefix
%define program_name x264 %define private_prefix x264
%endif %endif
%define WIN64 0 %define WIN64 0
...@@ -650,7 +650,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ...@@ -650,7 +650,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14
%endmacro %endmacro
%macro cglobal_internal 1-2+ %macro cglobal_internal 1-2+
%ifndef cglobaled_%1 %ifndef cglobaled_%1
%xdefine %1 mangle(program_name %+ _ %+ %1) %xdefine %1 mangle(private_prefix %+ _ %+ %1)
%xdefine %1.skip_prologue %1 %+ .skip_prologue %xdefine %1.skip_prologue %1 %+ .skip_prologue
CAT_XDEFINE cglobaled_, %1, 1 CAT_XDEFINE cglobaled_, %1, 1
%endif %endif
...@@ -674,7 +674,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ...@@ -674,7 +674,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14
%endmacro %endmacro
%macro cextern 1 %macro cextern 1
%xdefine %1 mangle(program_name %+ _ %+ %1) %xdefine %1 mangle(private_prefix %+ _ %+ %1)
CAT_XDEFINE cglobaled_, %1, 1 CAT_XDEFINE cglobaled_, %1, 1
extern %1 extern %1
%endmacro %endmacro
...@@ -687,7 +687,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ...@@ -687,7 +687,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14
%endmacro %endmacro
%macro const 2+ %macro const 2+
%xdefine %1 mangle(program_name %+ _ %+ %1) %xdefine %1 mangle(private_prefix %+ _ %+ %1)
global %1 global %1
%1: %2 %1: %2
%endmacro %endmacro
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;****************************************************************************** ;******************************************************************************
%define program_name ff %define private_prefix ff
%define cpuflags_mmxext cpuflags_mmx2 %define cpuflags_mmxext cpuflags_mmx2
%include "libavutil/x86/x86inc.asm" %include "libavutil/x86/x86inc.asm"
......
...@@ -98,7 +98,7 @@ cglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, u3 ...@@ -98,7 +98,7 @@ cglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, u3
%define coeff2 [%2_Ycoeff_3x56] %define coeff2 [%2_Ycoeff_3x56]
%endif ; x86-32/64 && mmsize == 8/16 %endif ; x86-32/64 && mmsize == 8/16
%if (ARCH_X86_64 || mmsize == 8) && %0 == 3 %if (ARCH_X86_64 || mmsize == 8) && %0 == 3
jmp mangle(program_name %+ _ %+ %3 %+ 24ToY %+ SUFFIX).body jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToY %+ SUFFIX).body
%else ; (ARCH_X86_64 && %0 == 3) || mmsize == 8 %else ; (ARCH_X86_64 && %0 == 3) || mmsize == 8
.body: .body:
%if cpuflag(ssse3) %if cpuflag(ssse3)
...@@ -188,7 +188,7 @@ cglobal %2 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, u3 ...@@ -188,7 +188,7 @@ cglobal %2 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, u3
%define coeffV2 [%2_Vcoeff_3x56] %define coeffV2 [%2_Vcoeff_3x56]
%endif ; x86-32/64 %endif ; x86-32/64
%if ARCH_X86_64 && %0 == 3 %if ARCH_X86_64 && %0 == 3
jmp mangle(program_name %+ _ %+ %3 %+ 24ToUV %+ SUFFIX).body jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToUV %+ SUFFIX).body
%else ; ARCH_X86_64 && %0 == 3 %else ; ARCH_X86_64 && %0 == 3
.body: .body:
%if cpuflag(ssse3) %if cpuflag(ssse3)
...@@ -315,7 +315,7 @@ cglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, u3 ...@@ -315,7 +315,7 @@ cglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, u3
mova m5, [rgba_Ycoeff_%2%4] mova m5, [rgba_Ycoeff_%2%4]
mova m6, [rgba_Ycoeff_%3%5] mova m6, [rgba_Ycoeff_%3%5]
%if %0 == 6 %if %0 == 6
jmp mangle(program_name %+ _ %+ %6 %+ ToY %+ SUFFIX).body jmp mangle(private_prefix %+ _ %+ %6 %+ ToY %+ SUFFIX).body
%else ; %0 == 6 %else ; %0 == 6
.body: .body:
%if ARCH_X86_64 %if ARCH_X86_64
...@@ -371,7 +371,7 @@ cglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, u3 ...@@ -371,7 +371,7 @@ cglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, u3
%define coeffV2 [rgba_Vcoeff_%3%5] %define coeffV2 [rgba_Vcoeff_%3%5]
%endif ; x86-64/32 %endif ; x86-64/32
%if ARCH_X86_64 && %0 == 6 %if ARCH_X86_64 && %0 == 6
jmp mangle(program_name %+ _ %+ %6 %+ ToUV %+ SUFFIX).body jmp mangle(private_prefix %+ _ %+ %6 %+ ToUV %+ SUFFIX).body
%else ; ARCH_X86_64 && %0 == 6 %else ; ARCH_X86_64 && %0 == 6
.body: .body:
%if ARCH_X86_64 %if ARCH_X86_64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment