Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
39e208f4
Commit
39e208f4
authored
Oct 08, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Generalize yasm/nasm-related variable names
None of them are specific to the YASM assembler.
parent
d1d6230e
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
145 additions
and
140 deletions
+145
-140
Makefile
Makefile
+6
-6
arch.mak
avbuild/arch.mak
+1
-1
configure
configure
+35
-30
Makefile
libavcodec/x86/Makefile
+36
-36
dcadsp_init.c
libavcodec/x86/dcadsp_init.c
+4
-4
fmtconvert_init.c
libavcodec/x86/fmtconvert_init.c
+4
-4
h264_qpel.c
libavcodec/x86/h264_qpel.c
+3
-3
hpeldsp_init.c
libavcodec/x86/hpeldsp_init.c
+2
-2
mpegaudiodsp.c
libavcodec/x86/mpegaudiodsp.c
+4
-4
qpeldsp_init.c
libavcodec/x86/qpeldsp_init.c
+2
-2
rv40dsp_init.c
libavcodec/x86/rv40dsp_init.c
+4
-4
vc1dsp_init.c
libavcodec/x86/vc1dsp_init.c
+4
-4
videodsp_init.c
libavcodec/x86/videodsp_init.c
+4
-4
vp8dsp_init.c
libavcodec/x86/vp8dsp_init.c
+6
-6
vp9dsp_init.c
libavcodec/x86/vp9dsp_init.c
+4
-4
Makefile
libavfilter/x86/Makefile
+5
-5
vf_gradfun_init.c
libavfilter/x86/vf_gradfun_init.c
+4
-4
vf_hqdn3d_init.c
libavfilter/x86/vf_hqdn3d_init.c
+2
-2
Makefile
libavresample/x86/Makefile
+3
-3
Makefile
libavutil/x86/Makefile
+5
-5
cpu.c
libavutil/x86/cpu.c
+2
-2
Makefile
libswscale/x86/Makefile
+1
-1
rgb2rgb_template.c
libswscale/x86/rgb2rgb_template.c
+2
-2
Makefile
tests/checkasm/Makefile
+1
-1
checkasm.h
tests/checkasm/checkasm.h
+1
-1
No files found.
Makefile
View file @
39e208f4
...
@@ -11,8 +11,8 @@ vpath %.texi $(SRC_PATH)
...
@@ -11,8 +11,8 @@ vpath %.texi $(SRC_PATH)
ifndef
V
ifndef
V
Q
=
@
Q
=
@
ECHO
=
printf
"
$
(1)
\t
%s
\n
"
$
(
2
)
ECHO
=
printf
"
$
(1)
\t
%s
\n
"
$
(
2
)
BRIEF
=
CC HOSTCC HOSTLD AS
Y
ASM AR LD
BRIEF
=
CC HOSTCC HOSTLD AS
X86
ASM AR LD
SILENT
=
DEPCC DEPHOSTCC DEPAS DEP
Y
ASM RANLIB RM STRIP
SILENT
=
DEPCC DEPHOSTCC DEPAS DEP
X86
ASM RANLIB RM STRIP
MSG
=
$@
MSG
=
$@
M
=
@
$
(
call ECHO,
$(TAG)
,
$@
)
;
M
=
@
$
(
call ECHO,
$(TAG)
,
$@
)
;
$(foreach
VAR,$(BRIEF),
\
$(foreach
VAR,$(BRIEF),
\
...
@@ -30,7 +30,7 @@ CCFLAGS = $(CPPFLAGS) $(CFLAGS)
...
@@ -30,7 +30,7 @@ CCFLAGS = $(CPPFLAGS) $(CFLAGS)
OBJCFLAGS
+=
$(EOBJCFLAGS)
OBJCFLAGS
+=
$(EOBJCFLAGS)
OBJCCFLAGS
=
$(CPPFLAGS)
$(CFLAGS)
$(OBJCFLAGS)
OBJCCFLAGS
=
$(CPPFLAGS)
$(CFLAGS)
$(OBJCFLAGS)
ASFLAGS
:=
$(CPPFLAGS)
$(ASFLAGS)
ASFLAGS
:=
$(CPPFLAGS)
$(ASFLAGS)
YASMFLAGS
+=
$
(
IFLAGS:%
=
%/
)
-Pconfig
.asm
X86ASMFLAGS
+=
$
(
IFLAGS:%
=
%/
)
-Pconfig
.asm
HOSTCCFLAGS
=
$(IFLAGS)
$(HOSTCPPFLAGS)
$(HOSTCFLAGS)
HOSTCCFLAGS
=
$(IFLAGS)
$(HOSTCPPFLAGS)
$(HOSTCFLAGS)
LDFLAGS
:=
$
(
ALLFFLIBS:%
=
$(LD_PATH)
lib%
)
$(LDFLAGS)
LDFLAGS
:=
$
(
ALLFFLIBS:%
=
$(LD_PATH)
lib%
)
$(LDFLAGS)
...
@@ -57,8 +57,8 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC)
...
@@ -57,8 +57,8 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC)
$(COMPILE_HOSTC)
$(COMPILE_HOSTC)
%.o
:
%.asm
%.o
:
%.asm
$(DEP
YASM)
$(Y
ASMFLAGS)
-I
$
(
<D
)
/
-M
-o
$@
$<
>
$
(
@:.o
=
.d
)
$(DEP
X86ASM)
$(X86
ASMFLAGS)
-I
$
(
<D
)
/
-M
-o
$@
$<
>
$
(
@:.o
=
.d
)
$(
YASM)
$(Y
ASMFLAGS)
-I
$
(
<D
)
/
-o
$@
$<
$(
X86ASM)
$(X86
ASMFLAGS)
-I
$
(
<D
)
/
-o
$@
$<
-
$(STRIP)
$(STRIPFLAGS)
$@
-
$(STRIP)
$(STRIPFLAGS)
$@
%.i
:
%.c
%.i
:
%.c
...
@@ -113,7 +113,7 @@ avbuild/.config: $(CONFIGURABLE_COMPONENTS)
...
@@ -113,7 +113,7 @@ avbuild/.config: $(CONFIGURABLE_COMPONENTS)
SUBDIR_VARS
:=
CLEANFILES FFLIBS HOSTPROGS TESTPROGS TOOLS
\
SUBDIR_VARS
:=
CLEANFILES FFLIBS HOSTPROGS TESTPROGS TOOLS
\
HEADERS ARCH_HEADERS BUILT_HEADERS SKIPHEADERS
\
HEADERS ARCH_HEADERS BUILT_HEADERS SKIPHEADERS
\
ARMV5TE-OBJS ARMV6-OBJS ARMV8-OBJS VFP-OBJS NEON-OBJS
\
ARMV5TE-OBJS ARMV6-OBJS ARMV8-OBJS VFP-OBJS NEON-OBJS
\
ALTIVEC-OBJS VSX-OBJS MMX-OBJS
YASM-OBJS
\
ALTIVEC-OBJS VSX-OBJS MMX-OBJS
X86ASM-OBJS
\
OBJS HOSTOBJS TESTOBJS
OBJS HOSTOBJS TESTOBJS
define
RESET
define
RESET
...
...
avbuild/arch.mak
View file @
39e208f4
...
@@ -8,4 +8,4 @@ OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS) $(ALTIVEC-OBJS-yes)
...
@@ -8,4 +8,4 @@ OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS) $(ALTIVEC-OBJS-yes)
OBJS-$(HAVE_VSX) += $(VSX-OBJS) $(VSX-OBJS-yes)
OBJS-$(HAVE_VSX) += $(VSX-OBJS) $(VSX-OBJS-yes)
OBJS-$(HAVE_MMX) += $(MMX-OBJS) $(MMX-OBJS-yes)
OBJS-$(HAVE_MMX) += $(MMX-OBJS) $(MMX-OBJS-yes)
OBJS-$(HAVE_
YASM) += $(YASM-OBJS) $(Y
ASM-OBJS-yes)
OBJS-$(HAVE_
X86ASM) += $(X86ASM-OBJS) $(X86
ASM-OBJS-yes)
configure
View file @
39e208f4
...
@@ -325,7 +325,7 @@ Optimization options (experts only):
...
@@ -325,7 +325,7 @@ Optimization options (experts only):
--disable-vfp disable VFP optimizations
--disable-vfp disable VFP optimizations
--disable-neon disable NEON optimizations
--disable-neon disable NEON optimizations
--disable-inline-asm disable use of inline assembly
--disable-inline-asm disable use of inline assembly
--disable-
yasm disable use of nasm/yasm
assembly
--disable-
x86asm disable use of standalone x86
assembly
Developer options (useful when working on Libav itself):
Developer options (useful when working on Libav itself):
--disable-debug disable debugging symbols
--disable-debug disable debugging symbols
...
@@ -829,12 +829,12 @@ check_insn(){
...
@@ -829,12 +829,12 @@ check_insn(){
echo
"
$2
"
| check_as
&&
enable
${
1
}
_external
||
disable
${
1
}
_external
echo
"
$2
"
| check_as
&&
enable
${
1
}
_external
||
disable
${
1
}
_external
}
}
check_
y
asm
(){
check_
x86
asm
(){
log check_
y
asm
"
$@
"
log check_
x86
asm
"
$@
"
echo
"
$1
"
>
$TMPS
echo
"
$1
"
>
$TMPS
log_file
$TMPS
log_file
$TMPS
shift
1
shift
1
check_cmd
$
yasmexe
$Y
ASMFLAGS
"
$@
"
-o
$TMPO
$TMPS
check_cmd
$
x86asmexe
$X86
ASMFLAGS
"
$@
"
-o
$TMPO
$TMPS
}
}
ld_o
(){
ld_o
(){
...
@@ -1533,7 +1533,7 @@ BUILTIN_LIST="
...
@@ -1533,7 +1533,7 @@ BUILTIN_LIST="
HAVE_LIST_CMDLINE
=
"
HAVE_LIST_CMDLINE
=
"
inline_asm
inline_asm
symver
symver
y
asm
x86
asm
"
"
HAVE_LIST_PUB
=
"
HAVE_LIST_PUB
=
"
...
@@ -1912,7 +1912,7 @@ fma3_deps="avx"
...
@@ -1912,7 +1912,7 @@ fma3_deps="avx"
fma4_deps
=
"avx"
fma4_deps
=
"avx"
avx2_deps
=
"avx"
avx2_deps
=
"avx"
mmx_external_deps
=
"
y
asm"
mmx_external_deps
=
"
x86
asm"
mmx_inline_deps
=
"inline_asm"
mmx_inline_deps
=
"inline_asm"
mmx_suggest
=
"mmx_external mmx_inline"
mmx_suggest
=
"mmx_external mmx_inline"
...
@@ -2568,7 +2568,7 @@ pkg_config_default=pkg-config
...
@@ -2568,7 +2568,7 @@ pkg_config_default=pkg-config
ranlib
=
"ranlib"
ranlib
=
"ranlib"
strip
=
"strip"
strip
=
"strip"
version_script
=
'--version-script'
version_script
=
'--version-script'
y
asmexe
=
"yasm"
x86
asmexe
=
"yasm"
# machine
# machine
arch_default
=
$(
uname
-m
)
arch_default
=
$(
uname
-m
)
...
@@ -2817,6 +2817,11 @@ for opt do
...
@@ -2817,6 +2817,11 @@ for opt do
warn
"avserver has been removed, the
${
opt
}
option is only"
\
warn
"avserver has been removed, the
${
opt
}
option is only"
\
"provided for compatibility and will be removed in the future"
"provided for compatibility and will be removed in the future"
;;
;;
--enable-yasm
|
--disable-yasm
)
warn
"The
${
opt
}
option is only provided for compatibility and will be
\n
"
\
"removed in the future. Use --enable-x86asm / --disable-x86asm instead."
test
$opt
=
--enable-yasm
&&
x86asm
=
yes
||
x86asm
=
no
;;
--enable-
?
*
|
--disable-
?
*
)
--enable-
?
*
|
--disable-
?
*
)
eval
$(
echo
"
$opt
"
|
sed
's/--/action=/;s/-/ option=/;s/-/_/g'
)
eval
$(
echo
"
$opt
"
|
sed
's/--/action=/;s/-/ option=/;s/-/_/g'
)
if
is_in
$option
$COMPONENT_LIST
;
then
if
is_in
$option
$COMPONENT_LIST
;
then
...
@@ -4467,30 +4472,30 @@ EOF
...
@@ -4467,30 +4472,30 @@ EOF
enabled ssse3
&&
check_inline_asm ssse3_inline
'"pabsw %xmm0, %xmm0"'
enabled ssse3
&&
check_inline_asm ssse3_inline
'"pabsw %xmm0, %xmm0"'
enabled mmxext
&&
check_inline_asm mmxext_inline
'"pmaxub %mm0, %mm1"'
enabled mmxext
&&
check_inline_asm mmxext_inline
'"pmaxub %mm0, %mm1"'
if
!
disabled_any asm mmx
y
asm
;
then
if
!
disabled_any asm mmx
x86
asm
;
then
if
check_cmd
$
y
asmexe
--version
;
then
if
check_cmd
$
x86
asmexe
--version
;
then
enabled x86_64
&&
y
asm_extra
=
"-m amd64"
enabled x86_64
&&
x86
asm_extra
=
"-m amd64"
y
asm_debug
=
"-g dwarf2"
x86
asm_debug
=
"-g dwarf2"
elif
check_cmd nasm
-v
;
then
elif
check_cmd nasm
-v
;
then
y
asmexe
=
nasm
x86
asmexe
=
nasm
y
asm_debug
=
"-g -F dwarf"
x86
asm_debug
=
"-g -F dwarf"
enabled x86_64
&&
test
"
$objformat
"
=
elf
&&
objformat
=
elf64
enabled x86_64
&&
test
"
$objformat
"
=
elf
&&
objformat
=
elf64
fi
fi
YASMFLAGS
=
"-f
$objformat
$y
asm_extra
"
X86ASMFLAGS
=
"-f
$objformat
$x86
asm_extra
"
enabled pic
&&
append
Y
ASMFLAGS
"-DPIC"
enabled pic
&&
append
X86
ASMFLAGS
"-DPIC"
test
-n
"
$extern_prefix
"
&&
append
Y
ASMFLAGS
"-DPREFIX"
test
-n
"
$extern_prefix
"
&&
append
X86
ASMFLAGS
"-DPREFIX"
case
"
$objformat
"
in
case
"
$objformat
"
in
elf
*
)
enabled debug
&&
append
YASMFLAGS
$y
asm_debug
;;
elf
*
)
enabled debug
&&
append
X86ASMFLAGS
$x86
asm_debug
;;
esac
esac
check_
yasm
"movbe ecx, [5]"
&&
enable
y
asm
||
check_
x86asm
"movbe ecx, [5]"
&&
enable
x86
asm
||
die
"yasm/nasm not found or too old. Use --disable-
y
asm for a crippled build."
die
"yasm/nasm not found or too old. Use --disable-
x86
asm for a crippled build."
check_
y
asm
"vextracti128 xmm0, ymm0, 0"
||
disable avx2_external
check_
x86
asm
"vextracti128 xmm0, ymm0, 0"
||
disable avx2_external
check_
y
asm
"vpmacsdd xmm0, xmm1, xmm2, xmm3"
||
disable xop_external
check_
x86
asm
"vpmacsdd xmm0, xmm1, xmm2, xmm3"
||
disable xop_external
check_
y
asm
"vfmadd132ps ymm0, ymm1, ymm2"
||
disable fma3_external
check_
x86
asm
"vfmadd132ps ymm0, ymm1, ymm2"
||
disable fma3_external
check_
y
asm
"vfmaddps ymm0, ymm1, ymm2, ymm3"
||
disable fma4_external
check_
x86
asm
"vfmaddps ymm0, ymm1, ymm2, ymm3"
||
disable fma4_external
check_
yasm
"CPU amdnop"
||
disable cpunop
check_
x86asm
"CPU amdnop"
||
disable cpunop
fi
fi
case
"
$cpu
"
in
case
"
$cpu
"
in
...
@@ -5209,7 +5214,7 @@ fi
...
@@ -5209,7 +5214,7 @@ fi
echo
"big-endian
${
bigendian
-no
}
"
echo
"big-endian
${
bigendian
-no
}
"
echo
"runtime cpu detection
${
runtime_cpudetect
-no
}
"
echo
"runtime cpu detection
${
runtime_cpudetect
-no
}
"
if
enabled x86
;
then
if
enabled x86
;
then
echo
"
${
yasmexe
}
${
y
asm
-no
}
"
echo
"
standalone assembly
${
x86
asm
-no
}
"
echo
"MMX enabled
${
mmx
-no
}
"
echo
"MMX enabled
${
mmx
-no
}
"
echo
"MMXEXT enabled
${
mmxext
-no
}
"
echo
"MMXEXT enabled
${
mmxext
-no
}
"
echo
"3DNow! enabled
${
amd3dnow
-no
}
"
echo
"3DNow! enabled
${
amd3dnow
-no
}
"
...
@@ -5328,8 +5333,8 @@ DEPCC=$dep_cc
...
@@ -5328,8 +5333,8 @@ DEPCC=$dep_cc
DEPCCFLAGS=
$DEPCCFLAGS
\
$(
CPPFLAGS
)
DEPCCFLAGS=
$DEPCCFLAGS
\
$(
CPPFLAGS
)
DEPAS=
$as
DEPAS=
$as
DEPASFLAGS=
$DEPASFLAGS
\
$(
CPPFLAGS
)
DEPASFLAGS=
$DEPASFLAGS
\
$(
CPPFLAGS
)
YASM=
$y
asmexe
X86ASM=
$x86
asmexe
DEP
YASM=
$y
asmexe
DEP
X86ASM=
$x86
asmexe
AR=
$ar
AR=
$ar
ARFLAGS=
$arflags
ARFLAGS=
$arflags
AR_O=
$ar_o
AR_O=
$ar_o
...
@@ -5356,7 +5361,7 @@ LDFLAGS=$LDFLAGS
...
@@ -5356,7 +5361,7 @@ LDFLAGS=$LDFLAGS
LDEXEFLAGS=
$LDEXEFLAGS
LDEXEFLAGS=
$LDEXEFLAGS
SHFLAGS=
$(
echo
$(
$ldflags_filter
$SHFLAGS
))
SHFLAGS=
$(
echo
$(
$ldflags_filter
$SHFLAGS
))
STRIPFLAGS=
$STRIPFLAGS
STRIPFLAGS=
$STRIPFLAGS
YASMFLAGS=
$Y
ASMFLAGS
X86ASMFLAGS=
$X86
ASMFLAGS
LIBPREF=
$LIBPREF
LIBPREF=
$LIBPREF
LIBSUF=
$LIBSUF
LIBSUF=
$LIBSUF
LIBNAME=
$LIBNAME
LIBNAME=
$LIBNAME
...
@@ -5432,7 +5437,7 @@ EOF
...
@@ -5432,7 +5437,7 @@ EOF
test
-n
"
$malloc_prefix
"
&&
test
-n
"
$malloc_prefix
"
&&
echo
"#define MALLOC_PREFIX
$malloc_prefix
"
>>
$TMPH
echo
"#define MALLOC_PREFIX
$malloc_prefix
"
>>
$TMPH
if
enabled
y
asm
;
then
if
enabled
x86
asm
;
then
append config_files
$TMPASM
append config_files
$TMPASM
printf
''
>
$TMPASM
printf
''
>
$TMPASM
fi
fi
...
@@ -5451,7 +5456,7 @@ echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH
...
@@ -5451,7 +5456,7 @@ echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH
cp_if_changed
$TMPH
config.h
cp_if_changed
$TMPH
config.h
touch
avbuild/.config
touch
avbuild/.config
enabled
y
asm
&&
cp_if_changed
$TMPASM
config.asm
enabled
x86
asm
&&
cp_if_changed
$TMPASM
config.asm
cat
>
$TMPH
<<
EOF
cat
>
$TMPH
<<
EOF
/* Generated by ffconf */
/* Generated by ffconf */
...
...
libavcodec/x86/Makefile
View file @
39e208f4
...
@@ -71,60 +71,60 @@ MMX-OBJS-$(CONFIG_MPEG4_DECODER) += x86/xvididct_mmx.o \
...
@@ -71,60 +71,60 @@ MMX-OBJS-$(CONFIG_MPEG4_DECODER) += x86/xvididct_mmx.o \
x86/xvididct_sse2.o
x86/xvididct_sse2.o
# subsystems
# subsystems
YASM-OBJS-$(CONFIG_AC3DSP)
+=
x86/ac3dsp.o
\
X86ASM-OBJS-$(CONFIG_AC3DSP)
+=
x86/ac3dsp.o
\
x86/ac3dsp_downmix.o
x86/ac3dsp_downmix.o
YASM-OBJS-$(CONFIG_AUDIODSP)
+=
x86/audiodsp.o
X86ASM-OBJS-$(CONFIG_AUDIODSP)
+=
x86/audiodsp.o
YASM-OBJS-$(CONFIG_BSWAPDSP)
+=
x86/bswapdsp.o
X86ASM-OBJS-$(CONFIG_BSWAPDSP)
+=
x86/bswapdsp.o
YASM-OBJS-$(CONFIG_DCT)
+=
x86/dct32.o
X86ASM-OBJS-$(CONFIG_DCT)
+=
x86/dct32.o
YASM-OBJS-$(CONFIG_FFT)
+=
x86/fft.o
X86ASM-OBJS-$(CONFIG_FFT)
+=
x86/fft.o
YASM-OBJS-$(CONFIG_FMTCONVERT)
+=
x86/fmtconvert.o
X86ASM-OBJS-$(CONFIG_FMTCONVERT)
+=
x86/fmtconvert.o
YASM-OBJS-$(CONFIG_H263DSP)
+=
x86/h263_loopfilter.o
X86ASM-OBJS-$(CONFIG_H263DSP)
+=
x86/h263_loopfilter.o
YASM-OBJS-$(CONFIG_H264CHROMA)
+=
x86/h264_chromamc.o
\
X86ASM-OBJS-$(CONFIG_H264CHROMA)
+=
x86/h264_chromamc.o
\
x86/h264_chromamc_10bit.o
x86/h264_chromamc_10bit.o
YASM-OBJS-$(CONFIG_H264DSP)
+=
x86/h264_deblock.o
\
X86ASM-OBJS-$(CONFIG_H264DSP)
+=
x86/h264_deblock.o
\
x86/h264_deblock_10bit.o
\
x86/h264_deblock_10bit.o
\
x86/h264_idct.o
\
x86/h264_idct.o
\
x86/h264_idct_10bit.o
\
x86/h264_idct_10bit.o
\
x86/h264_weight.o
\
x86/h264_weight.o
\
x86/h264_weight_10bit.o
x86/h264_weight_10bit.o
YASM-OBJS-$(CONFIG_H264PRED)
+=
x86/h264_intrapred.o
\
X86ASM-OBJS-$(CONFIG_H264PRED)
+=
x86/h264_intrapred.o
\
x86/h264_intrapred_10bit.o
x86/h264_intrapred_10bit.o
YASM-OBJS-$(CONFIG_H264QPEL)
+=
x86/h264_qpel_8bit.o
\
X86ASM-OBJS-$(CONFIG_H264QPEL)
+=
x86/h264_qpel_8bit.o
\
x86/h264_qpel_10bit.o
\
x86/h264_qpel_10bit.o
\
x86/fpel.o
\
x86/fpel.o
\
x86/qpel.o
x86/qpel.o
YASM-OBJS-$(CONFIG_HPELDSP)
+=
x86/fpel.o
\
X86ASM-OBJS-$(CONFIG_HPELDSP)
+=
x86/fpel.o
\
x86/hpeldsp.o
x86/hpeldsp.o
YASM-OBJS-$(CONFIG_HUFFYUVDSP)
+=
x86/huffyuvdsp.o
X86ASM-OBJS-$(CONFIG_HUFFYUVDSP)
+=
x86/huffyuvdsp.o
YASM-OBJS-$(CONFIG_ME_CMP)
+=
x86/me_cmp.o
X86ASM-OBJS-$(CONFIG_ME_CMP)
+=
x86/me_cmp.o
YASM-OBJS-$(CONFIG_MPEGAUDIODSP)
+=
x86/imdct36.o
X86ASM-OBJS-$(CONFIG_MPEGAUDIODSP)
+=
x86/imdct36.o
YASM-OBJS-$(CONFIG_MPEGVIDEOENC)
+=
x86/mpegvideoencdsp.o
X86ASM-OBJS-$(CONFIG_MPEGVIDEOENC)
+=
x86/mpegvideoencdsp.o
YASM-OBJS-$(CONFIG_PIXBLOCKDSP)
+=
x86/pixblockdsp.o
X86ASM-OBJS-$(CONFIG_PIXBLOCKDSP)
+=
x86/pixblockdsp.o
YASM-OBJS-$(CONFIG_QPELDSP)
+=
x86/qpeldsp.o
\
X86ASM-OBJS-$(CONFIG_QPELDSP)
+=
x86/qpeldsp.o
\
x86/fpel.o
\
x86/fpel.o
\
x86/qpel.o
x86/qpel.o
YASM-OBJS-$(CONFIG_RV34DSP)
+=
x86/rv34dsp.o
X86ASM-OBJS-$(CONFIG_RV34DSP)
+=
x86/rv34dsp.o
YASM-OBJS-$(CONFIG_VC1DSP)
+=
x86/vc1dsp.o
X86ASM-OBJS-$(CONFIG_VC1DSP)
+=
x86/vc1dsp.o
YASM-OBJS-$(CONFIG_VIDEODSP)
+=
x86/videodsp.o
X86ASM-OBJS-$(CONFIG_VIDEODSP)
+=
x86/videodsp.o
YASM-OBJS-$(CONFIG_VP3DSP)
+=
x86/vp3dsp.o
X86ASM-OBJS-$(CONFIG_VP3DSP)
+=
x86/vp3dsp.o
YASM-OBJS-$(CONFIG_VP8DSP)
+=
x86/vp8dsp.o
\
X86ASM-OBJS-$(CONFIG_VP8DSP)
+=
x86/vp8dsp.o
\
x86/vp8dsp_loopfilter.o
x86/vp8dsp_loopfilter.o
# decoders/encoders
# decoders/encoders
YASM-OBJS-$(CONFIG_AAC_DECODER)
+=
x86/sbrdsp.o
X86ASM-OBJS-$(CONFIG_AAC_DECODER)
+=
x86/sbrdsp.o
YASM-OBJS-$(CONFIG_APE_DECODER)
+=
x86/apedsp.o
X86ASM-OBJS-$(CONFIG_APE_DECODER)
+=
x86/apedsp.o
YASM-OBJS-$(CONFIG_DCA_DECODER)
+=
x86/dcadsp.o
X86ASM-OBJS-$(CONFIG_DCA_DECODER)
+=
x86/dcadsp.o
YASM-OBJS-$(CONFIG_DNXHD_ENCODER)
+=
x86/dnxhdenc.o
X86ASM-OBJS-$(CONFIG_DNXHD_ENCODER)
+=
x86/dnxhdenc.o
YASM-OBJS-$(CONFIG_HEVC_DECODER)
+=
x86/hevc_add_res.o
\
X86ASM-OBJS-$(CONFIG_HEVC_DECODER)
+=
x86/hevc_add_res.o
\
x86/hevc_deblock.o
\
x86/hevc_deblock.o
\
x86/hevc_idct.o
\
x86/hevc_idct.o
\
x86/hevc_mc.o
x86/hevc_mc.o
YASM-OBJS-$(CONFIG_PNG_DECODER)
+=
x86/pngdsp.o
X86ASM-OBJS-$(CONFIG_PNG_DECODER)
+=
x86/pngdsp.o
YASM-OBJS-$(CONFIG_PRORES_DECODER)
+=
x86/proresdsp.o
X86ASM-OBJS-$(CONFIG_PRORES_DECODER)
+=
x86/proresdsp.o
YASM-OBJS-$(CONFIG_RV40_DECODER)
+=
x86/rv40dsp.o
X86ASM-OBJS-$(CONFIG_RV40_DECODER)
+=
x86/rv40dsp.o
YASM-OBJS-$(CONFIG_V210_ENCODER)
+=
x86/v210enc.o
X86ASM-OBJS-$(CONFIG_V210_ENCODER)
+=
x86/v210enc.o
YASM-OBJS-$(CONFIG_VORBIS_DECODER)
+=
x86/vorbisdsp.o
X86ASM-OBJS-$(CONFIG_VORBIS_DECODER)
+=
x86/vorbisdsp.o
YASM-OBJS-$(CONFIG_VP3_DECODER)
+=
x86/hpeldsp_vp3.o
X86ASM-OBJS-$(CONFIG_VP3_DECODER)
+=
x86/hpeldsp_vp3.o
YASM-OBJS-$(CONFIG_VP6_DECODER)
+=
x86/vp6dsp.o
X86ASM-OBJS-$(CONFIG_VP6_DECODER)
+=
x86/vp6dsp.o
YASM-OBJS-$(CONFIG_VP9_DECODER)
+=
x86/vp9mc.o
\
X86ASM-OBJS-$(CONFIG_VP9_DECODER)
+=
x86/vp9mc.o
\
x86/vp9lpf.o
x86/vp9lpf.o
libavcodec/x86/dcadsp_init.c
View file @
39e208f4
...
@@ -56,18 +56,18 @@ static void synth_filter_##opt(FFTContext *imdct, \
...
@@ -56,18 +56,18 @@ static void synth_filter_##opt(FFTContext *imdct, \
*synth_buf_offset = (*synth_buf_offset - 32) & 511; \
*synth_buf_offset = (*synth_buf_offset - 32) & 511; \
} \
} \
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
#if ARCH_X86_32
#if ARCH_X86_32
SYNTH_FILTER_FUNC
(
sse
)
SYNTH_FILTER_FUNC
(
sse
)
#endif
#endif
SYNTH_FILTER_FUNC
(
sse2
)
SYNTH_FILTER_FUNC
(
sse2
)
SYNTH_FILTER_FUNC
(
avx
)
SYNTH_FILTER_FUNC
(
avx
)
SYNTH_FILTER_FUNC
(
fma3
)
SYNTH_FILTER_FUNC
(
fma3
)
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
av_cold
void
ff_synth_filter_init_x86
(
SynthFilterContext
*
s
)
av_cold
void
ff_synth_filter_init_x86
(
SynthFilterContext
*
s
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
#if ARCH_X86_32
#if ARCH_X86_32
...
@@ -84,5 +84,5 @@ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
...
@@ -84,5 +84,5 @@ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
if
(
EXTERNAL_FMA3
(
cpu_flags
)
&&
!
(
cpu_flags
&
AV_CPU_FLAG_AVXSLOW
))
{
if
(
EXTERNAL_FMA3
(
cpu_flags
)
&&
!
(
cpu_flags
&
AV_CPU_FLAG_AVXSLOW
))
{
s
->
synth_filter_float
=
synth_filter_fma3
;
s
->
synth_filter_float
=
synth_filter_fma3
;
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/fmtconvert_init.c
View file @
39e208f4
...
@@ -27,16 +27,16 @@
...
@@ -27,16 +27,16 @@
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/fmtconvert.h"
#include "libavcodec/fmtconvert.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
void
ff_int32_to_float_fmul_scalar_sse
(
float
*
dst
,
const
int32_t
*
src
,
float
mul
,
int
len
);
void
ff_int32_to_float_fmul_scalar_sse
(
float
*
dst
,
const
int32_t
*
src
,
float
mul
,
int
len
);
void
ff_int32_to_float_fmul_scalar_sse2
(
float
*
dst
,
const
int32_t
*
src
,
float
mul
,
int
len
);
void
ff_int32_to_float_fmul_scalar_sse2
(
float
*
dst
,
const
int32_t
*
src
,
float
mul
,
int
len
);
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
av_cold
void
ff_fmt_convert_init_x86
(
FmtConvertContext
*
c
,
AVCodecContext
*
avctx
)
av_cold
void
ff_fmt_convert_init_x86
(
FmtConvertContext
*
c
,
AVCodecContext
*
avctx
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
if
(
EXTERNAL_SSE
(
cpu_flags
))
{
if
(
EXTERNAL_SSE
(
cpu_flags
))
{
...
@@ -45,5 +45,5 @@ av_cold void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx
...
@@ -45,5 +45,5 @@ av_cold void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx
if
(
EXTERNAL_SSE2
(
cpu_flags
))
{
if
(
EXTERNAL_SSE2
(
cpu_flags
))
{
c
->
int32_to_float_fmul_scalar
=
ff_int32_to_float_fmul_scalar_sse2
;
c
->
int32_to_float_fmul_scalar
=
ff_int32_to_float_fmul_scalar_sse2
;
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/h264_qpel.c
View file @
39e208f4
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "libavcodec/pixels.h"
#include "libavcodec/pixels.h"
#include "fpel.h"
#include "fpel.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
void
ff_put_pixels4_mmxext
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
void
ff_put_pixels4_mmxext
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
);
ptrdiff_t
line_size
,
int
h
);
void
ff_avg_pixels4_mmxext
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
void
ff_avg_pixels4_mmxext
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
...
@@ -503,7 +503,7 @@ QPEL16_OP(mc33, MMX)
...
@@ -503,7 +503,7 @@ QPEL16_OP(mc33, MMX)
QPEL16
(
mmxext
)
QPEL16
(
mmxext
)
#endif
#endif
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
#define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU, PREFIX) \
#define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU, PREFIX) \
do { \
do { \
...
@@ -543,7 +543,7 @@ QPEL16(mmxext)
...
@@ -543,7 +543,7 @@ QPEL16(mmxext)
av_cold
void
ff_h264qpel_init_x86
(
H264QpelContext
*
c
,
int
bit_depth
)
av_cold
void
ff_h264qpel_init_x86
(
H264QpelContext
*
c
,
int
bit_depth
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
high_bit_depth
=
bit_depth
>
8
;
int
high_bit_depth
=
bit_depth
>
8
;
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
...
...
libavcodec/x86/hpeldsp_init.c
View file @
39e208f4
...
@@ -134,7 +134,7 @@ CALL_2X_PIXELS_EXPORT(ff_put_pixels16_xy2_mmx, ff_put_pixels8_xy2_mmx, 8)
...
@@ -134,7 +134,7 @@ CALL_2X_PIXELS_EXPORT(ff_put_pixels16_xy2_mmx, ff_put_pixels8_xy2_mmx, 8)
#endif
/* HAVE_INLINE_ASM */
#endif
/* HAVE_INLINE_ASM */
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
#define HPELDSP_AVG_PIXELS16(CPUEXT) \
#define HPELDSP_AVG_PIXELS16(CPUEXT) \
CALL_2X_PIXELS(put_no_rnd_pixels16_x2 ## CPUEXT, ff_put_no_rnd_pixels8_x2 ## CPUEXT, 8) \
CALL_2X_PIXELS(put_no_rnd_pixels16_x2 ## CPUEXT, ff_put_no_rnd_pixels8_x2 ## CPUEXT, 8) \
...
@@ -148,7 +148,7 @@ CALL_2X_PIXELS_EXPORT(ff_put_pixels16_xy2_mmx, ff_put_pixels8_xy2_mmx, 8)
...
@@ -148,7 +148,7 @@ CALL_2X_PIXELS_EXPORT(ff_put_pixels16_xy2_mmx, ff_put_pixels8_xy2_mmx, 8)
HPELDSP_AVG_PIXELS16
(
_3dnow
)
HPELDSP_AVG_PIXELS16
(
_3dnow
)
HPELDSP_AVG_PIXELS16
(
_mmxext
)
HPELDSP_AVG_PIXELS16
(
_mmxext
)
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
#define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU) \
#define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU) \
do { \
do { \
...
...
libavcodec/x86/mpegaudiodsp.c
View file @
39e208f4
...
@@ -184,7 +184,7 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out,
...
@@ -184,7 +184,7 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out,
#endif
/* HAVE_SSE2_INLINE */
#endif
/* HAVE_SSE2_INLINE */
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
#define DECL_IMDCT_BLOCKS(CPU1, CPU2) \
#define DECL_IMDCT_BLOCKS(CPU1, CPU2) \
static void imdct36_blocks_ ## CPU1(float *out, float *buf, float *in, \
static void imdct36_blocks_ ## CPU1(float *out, float *buf, float *in, \
int count, int switch_point, int block_type) \
int count, int switch_point, int block_type) \
...
@@ -222,7 +222,7 @@ DECL_IMDCT_BLOCKS(sse2,sse)
...
@@ -222,7 +222,7 @@ DECL_IMDCT_BLOCKS(sse2,sse)
DECL_IMDCT_BLOCKS
(
sse3
,
sse
)
DECL_IMDCT_BLOCKS
(
sse3
,
sse
)
DECL_IMDCT_BLOCKS
(
ssse3
,
sse
)
DECL_IMDCT_BLOCKS
(
ssse3
,
sse
)
DECL_IMDCT_BLOCKS
(
avx
,
avx
)
DECL_IMDCT_BLOCKS
(
avx
,
avx
)
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
av_cold
void
ff_mpadsp_init_x86
(
MPADSPContext
*
s
)
av_cold
void
ff_mpadsp_init_x86
(
MPADSPContext
*
s
)
{
{
...
@@ -248,7 +248,7 @@ av_cold void ff_mpadsp_init_x86(MPADSPContext *s)
...
@@ -248,7 +248,7 @@ av_cold void ff_mpadsp_init_x86(MPADSPContext *s)
}
}
#endif
/* HAVE_SSE2_INLINE */
#endif
/* HAVE_SSE2_INLINE */
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
if
(
EXTERNAL_SSE
(
cpu_flags
))
{
if
(
EXTERNAL_SSE
(
cpu_flags
))
{
s
->
imdct36_blocks_float
=
imdct36_blocks_sse
;
s
->
imdct36_blocks_float
=
imdct36_blocks_sse
;
}
}
...
@@ -264,5 +264,5 @@ av_cold void ff_mpadsp_init_x86(MPADSPContext *s)
...
@@ -264,5 +264,5 @@ av_cold void ff_mpadsp_init_x86(MPADSPContext *s)
if
(
EXTERNAL_AVX
(
cpu_flags
))
{
if
(
EXTERNAL_AVX
(
cpu_flags
))
{
s
->
imdct36_blocks_float
=
imdct36_blocks_avx
;
s
->
imdct36_blocks_float
=
imdct36_blocks_avx
;
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/qpeldsp_init.c
View file @
39e208f4
...
@@ -80,7 +80,7 @@ void ff_put_no_rnd_mpeg4_qpel8_v_lowpass_mmxext(uint8_t *dst,
...
@@ -80,7 +80,7 @@ void ff_put_no_rnd_mpeg4_qpel8_v_lowpass_mmxext(uint8_t *dst,
#define ff_put_no_rnd_pixels16_mmxext ff_put_pixels16_mmxext
#define ff_put_no_rnd_pixels16_mmxext ff_put_pixels16_mmxext
#define ff_put_no_rnd_pixels8_mmxext ff_put_pixels8_mmxext
#define ff_put_no_rnd_pixels8_mmxext ff_put_pixels8_mmxext
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
CALL_2X_PIXELS
(
ff_avg_pixels16_mmxext
,
ff_avg_pixels8_mmxext
,
8
)
CALL_2X_PIXELS
(
ff_avg_pixels16_mmxext
,
ff_avg_pixels8_mmxext
,
8
)
CALL_2X_PIXELS
(
ff_put_pixels16_mmxext
,
ff_put_pixels8_mmxext
,
8
)
CALL_2X_PIXELS
(
ff_put_pixels16_mmxext
,
ff_put_pixels8_mmxext
,
8
)
...
@@ -502,7 +502,7 @@ QPEL_OP(put_, _, mmxext)
...
@@ -502,7 +502,7 @@ QPEL_OP(put_, _, mmxext)
QPEL_OP
(
avg_
,
_
,
mmxext
)
QPEL_OP
(
avg_
,
_
,
mmxext
)
QPEL_OP
(
put_no_rnd_
,
_no_rnd_
,
mmxext
)
QPEL_OP
(
put_no_rnd_
,
_no_rnd_
,
mmxext
)
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
#define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU, PREFIX) \
#define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU, PREFIX) \
do { \
do { \
...
...
libavcodec/x86/rv40dsp_init.c
View file @
39e208f4
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "hpeldsp.h"
#include "hpeldsp.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
void
ff_put_rv40_chroma_mc8_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
void
ff_put_rv40_chroma_mc8_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
,
int
h
,
int
x
,
int
y
);
ptrdiff_t
stride
,
int
h
,
int
x
,
int
y
);
void
ff_avg_rv40_chroma_mc8_mmxext
(
uint8_t
*
dst
,
uint8_t
*
src
,
void
ff_avg_rv40_chroma_mc8_mmxext
(
uint8_t
*
dst
,
uint8_t
*
src
,
...
@@ -186,7 +186,7 @@ QPEL_FUNCS_SET (OP, 3, 1, OPT) \
...
@@ -186,7 +186,7 @@ QPEL_FUNCS_SET (OP, 3, 1, OPT) \
QPEL_FUNCS_SET (OP, 3, 2, OPT)
QPEL_FUNCS_SET (OP, 3, 2, OPT)
/** @} */
/** @} */
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
#if HAVE_MMX_INLINE
#if HAVE_MMX_INLINE
static
void
put_rv40_qpel8_mc33_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
static
void
put_rv40_qpel8_mc33_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
...
@@ -224,7 +224,7 @@ av_cold void ff_rv40dsp_init_x86(RV34DSPContext *c)
...
@@ -224,7 +224,7 @@ av_cold void ff_rv40dsp_init_x86(RV34DSPContext *c)
}
}
#endif
/* HAVE_MMX_INLINE */
#endif
/* HAVE_MMX_INLINE */
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
c
->
put_chroma_pixels_tab
[
0
]
=
ff_put_rv40_chroma_mc8_mmx
;
c
->
put_chroma_pixels_tab
[
0
]
=
ff_put_rv40_chroma_mc8_mmx
;
c
->
put_chroma_pixels_tab
[
1
]
=
ff_put_rv40_chroma_mc4_mmx
;
c
->
put_chroma_pixels_tab
[
1
]
=
ff_put_rv40_chroma_mc4_mmx
;
...
@@ -266,5 +266,5 @@ av_cold void ff_rv40dsp_init_x86(RV34DSPContext *c)
...
@@ -266,5 +266,5 @@ av_cold void ff_rv40dsp_init_x86(RV34DSPContext *c)
QPEL_MC_SET
(
put_
,
_ssse3
)
QPEL_MC_SET
(
put_
,
_ssse3
)
QPEL_MC_SET
(
avg_
,
_ssse3
)
QPEL_MC_SET
(
avg_
,
_ssse3
)
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/vc1dsp_init.c
View file @
39e208f4
...
@@ -50,7 +50,7 @@ static void vc1_h_loop_filter16_ ## EXT(uint8_t *src, int stride, int pq) \
...
@@ -50,7 +50,7 @@ static void vc1_h_loop_filter16_ ## EXT(uint8_t *src, int stride, int pq) \
ff_vc1_h_loop_filter8_ ## EXT(src+8*stride, stride, pq); \
ff_vc1_h_loop_filter8_ ## EXT(src+8*stride, stride, pq); \
}
}
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
LOOP_FILTER
(
mmxext
)
LOOP_FILTER
(
mmxext
)
LOOP_FILTER
(
sse2
)
LOOP_FILTER
(
sse2
)
LOOP_FILTER
(
ssse3
)
LOOP_FILTER
(
ssse3
)
...
@@ -68,7 +68,7 @@ static void avg_vc1_mspel_mc00_mmxext(uint8_t *dst, const uint8_t *src,
...
@@ -68,7 +68,7 @@ static void avg_vc1_mspel_mc00_mmxext(uint8_t *dst, const uint8_t *src,
{
{
ff_avg_pixels8_mmxext
(
dst
,
src
,
stride
,
8
);
ff_avg_pixels8_mmxext
(
dst
,
src
,
stride
,
8
);
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
void
ff_put_vc1_chroma_mc8_nornd_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
void
ff_put_vc1_chroma_mc8_nornd_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
,
int
h
,
int
x
,
int
y
);
ptrdiff_t
stride
,
int
h
,
int
x
,
int
y
);
...
@@ -100,7 +100,7 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp)
...
@@ -100,7 +100,7 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp)
dsp->vc1_v_loop_filter16 = vc1_v_loop_filter16_ ## EXT; \
dsp->vc1_v_loop_filter16 = vc1_v_loop_filter16_ ## EXT; \
dsp->vc1_h_loop_filter16 = vc1_h_loop_filter16_ ## EXT
dsp->vc1_h_loop_filter16 = vc1_h_loop_filter16_ ## EXT
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
dsp
->
put_no_rnd_vc1_chroma_pixels_tab
[
0
]
=
ff_put_vc1_chroma_mc8_nornd_mmx
;
dsp
->
put_no_rnd_vc1_chroma_pixels_tab
[
0
]
=
ff_put_vc1_chroma_mc8_nornd_mmx
;
}
}
...
@@ -128,5 +128,5 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp)
...
@@ -128,5 +128,5 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp)
dsp
->
vc1_h_loop_filter8
=
ff_vc1_h_loop_filter8_sse4
;
dsp
->
vc1_h_loop_filter8
=
ff_vc1_h_loop_filter8_sse4
;
dsp
->
vc1_h_loop_filter16
=
vc1_h_loop_filter16_sse4
;
dsp
->
vc1_h_loop_filter16
=
vc1_h_loop_filter16_sse4
;
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/videodsp_init.c
View file @
39e208f4
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/videodsp.h"
#include "libavcodec/videodsp.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
typedef
void
emu_edge_vfix_func
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
typedef
void
emu_edge_vfix_func
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
x86_reg
dst_stride
,
x86_reg
src_stride
,
x86_reg
dst_stride
,
x86_reg
src_stride
,
x86_reg
start_y
,
x86_reg
end_y
,
x86_reg
bh
);
x86_reg
start_y
,
x86_reg
end_y
,
x86_reg
bh
);
...
@@ -235,14 +235,14 @@ static av_noinline void emulated_edge_mc_sse2(uint8_t *buf, const uint8_t *src,
...
@@ -235,14 +235,14 @@ static av_noinline void emulated_edge_mc_sse2(uint8_t *buf, const uint8_t *src,
src_y
,
w
,
h
,
vfixtbl_sse
,
&
ff_emu_edge_vvar_sse
,
src_y
,
w
,
h
,
vfixtbl_sse
,
&
ff_emu_edge_vvar_sse
,
hfixtbl_sse2
,
&
ff_emu_edge_hvar_sse2
);
hfixtbl_sse2
,
&
ff_emu_edge_hvar_sse2
);
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
void
ff_prefetch_mmxext
(
uint8_t
*
buf
,
ptrdiff_t
stride
,
int
h
);
void
ff_prefetch_mmxext
(
uint8_t
*
buf
,
ptrdiff_t
stride
,
int
h
);
void
ff_prefetch_3dnow
(
uint8_t
*
buf
,
ptrdiff_t
stride
,
int
h
);
void
ff_prefetch_3dnow
(
uint8_t
*
buf
,
ptrdiff_t
stride
,
int
h
);
av_cold
void
ff_videodsp_init_x86
(
VideoDSPContext
*
ctx
,
int
bpc
)
av_cold
void
ff_videodsp_init_x86
(
VideoDSPContext
*
ctx
,
int
bpc
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
#if ARCH_X86_32
#if ARCH_X86_32
...
@@ -264,5 +264,5 @@ av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
...
@@ -264,5 +264,5 @@ av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
if
(
EXTERNAL_SSE2
(
cpu_flags
)
&&
bpc
<=
8
)
{
if
(
EXTERNAL_SSE2
(
cpu_flags
)
&&
bpc
<=
8
)
{
ctx
->
emulated_edge_mc
=
emulated_edge_mc_sse2
;
ctx
->
emulated_edge_mc
=
emulated_edge_mc_sse2
;
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/vp8dsp_init.c
View file @
39e208f4
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/vp8dsp.h"
#include "libavcodec/vp8dsp.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
/*
/*
* MC functions
* MC functions
...
@@ -288,7 +288,7 @@ DECLARE_LOOP_FILTER(sse2)
...
@@ -288,7 +288,7 @@ DECLARE_LOOP_FILTER(sse2)
DECLARE_LOOP_FILTER
(
ssse3
)
DECLARE_LOOP_FILTER
(
ssse3
)
DECLARE_LOOP_FILTER
(
sse4
)
DECLARE_LOOP_FILTER
(
sse4
)
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
#define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \
#define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \
c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \
c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \
...
@@ -316,7 +316,7 @@ DECLARE_LOOP_FILTER(sse4)
...
@@ -316,7 +316,7 @@ DECLARE_LOOP_FILTER(sse4)
av_cold
void
ff_vp78dsp_init_x86
(
VP8DSPContext
*
c
)
av_cold
void
ff_vp78dsp_init_x86
(
VP8DSPContext
*
c
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
...
@@ -361,12 +361,12 @@ av_cold void ff_vp78dsp_init_x86(VP8DSPContext *c)
...
@@ -361,12 +361,12 @@ av_cold void ff_vp78dsp_init_x86(VP8DSPContext *c)
VP8_BILINEAR_MC_FUNC
(
1
,
8
,
ssse3
);
VP8_BILINEAR_MC_FUNC
(
1
,
8
,
ssse3
);
VP8_BILINEAR_MC_FUNC
(
2
,
4
,
ssse3
);
VP8_BILINEAR_MC_FUNC
(
2
,
4
,
ssse3
);
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
av_cold
void
ff_vp8dsp_init_x86
(
VP8DSPContext
*
c
)
av_cold
void
ff_vp8dsp_init_x86
(
VP8DSPContext
*
c
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
if
(
EXTERNAL_MMX
(
cpu_flags
))
{
...
@@ -460,5 +460,5 @@ av_cold void ff_vp8dsp_init_x86(VP8DSPContext *c)
...
@@ -460,5 +460,5 @@ av_cold void ff_vp8dsp_init_x86(VP8DSPContext *c)
c
->
vp8_h_loop_filter16y
=
ff_vp8_h_loop_filter16y_mbedge_sse4
;
c
->
vp8_h_loop_filter16y
=
ff_vp8_h_loop_filter16y_mbedge_sse4
;
c
->
vp8_h_loop_filter8uv
=
ff_vp8_h_loop_filter8uv_mbedge_sse4
;
c
->
vp8_h_loop_filter8uv
=
ff_vp8_h_loop_filter8uv_mbedge_sse4
;
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavcodec/x86/vp9dsp_init.c
View file @
39e208f4
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/vp9.h"
#include "libavcodec/vp9.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
#define fpel_func(avg, sz, opt) \
#define fpel_func(avg, sz, opt) \
void ff_vp9_ ## avg ## sz ## _ ## opt(uint8_t *dst, ptrdiff_t dst_stride, \
void ff_vp9_ ## avg ## sz ## _ ## opt(uint8_t *dst, ptrdiff_t dst_stride, \
...
@@ -241,11 +241,11 @@ lpf_funcs(88, 16, avx);
...
@@ -241,11 +241,11 @@ lpf_funcs(88, 16, avx);
#undef lpf_funcs
#undef lpf_funcs
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
av_cold
void
ff_vp9dsp_init_x86
(
VP9DSPContext
*
dsp
)
av_cold
void
ff_vp9dsp_init_x86
(
VP9DSPContext
*
dsp
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
#define init_fpel(idx1, idx2, sz, type, opt) \
#define init_fpel(idx1, idx2, sz, type, opt) \
...
@@ -345,5 +345,5 @@ av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp)
...
@@ -345,5 +345,5 @@ av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp)
#undef init_subpel2
#undef init_subpel2
#undef init_subpel3
#undef init_subpel3
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavfilter/x86/Makefile
View file @
39e208f4
...
@@ -4,8 +4,8 @@ OBJS-$(CONFIG_INTERLACE_FILTER) += x86/vf_interlace_init.o
...
@@ -4,8 +4,8 @@ OBJS-$(CONFIG_INTERLACE_FILTER) += x86/vf_interlace_init.o
OBJS-$(CONFIG_VOLUME_FILTER)
+=
x86/af_volume_init.o
OBJS-$(CONFIG_VOLUME_FILTER)
+=
x86/af_volume_init.o
OBJS-$(CONFIG_YADIF_FILTER)
+=
x86/vf_yadif_init.o
OBJS-$(CONFIG_YADIF_FILTER)
+=
x86/vf_yadif_init.o
YASM-OBJS-$(CONFIG_GRADFUN_FILTER)
+=
x86/vf_gradfun.o
X86ASM-OBJS-$(CONFIG_GRADFUN_FILTER)
+=
x86/vf_gradfun.o
YASM-OBJS-$(CONFIG_HQDN3D_FILTER)
+=
x86/vf_hqdn3d.o
X86ASM-OBJS-$(CONFIG_HQDN3D_FILTER)
+=
x86/vf_hqdn3d.o
YASM-OBJS-$(CONFIG_INTERLACE_FILTER)
+=
x86/vf_interlace.o
X86ASM-OBJS-$(CONFIG_INTERLACE_FILTER)
+=
x86/vf_interlace.o
YASM-OBJS-$(CONFIG_VOLUME_FILTER)
+=
x86/af_volume.o
X86ASM-OBJS-$(CONFIG_VOLUME_FILTER)
+=
x86/af_volume.o
YASM-OBJS-$(CONFIG_YADIF_FILTER)
+=
x86/vf_yadif.o
X86ASM-OBJS-$(CONFIG_YADIF_FILTER)
+=
x86/vf_yadif.o
libavfilter/x86/vf_gradfun_init.c
View file @
39e208f4
...
@@ -40,7 +40,7 @@ void ff_gradfun_blur_line_movdqu_sse2(intptr_t x, uint16_t *buf,
...
@@ -40,7 +40,7 @@ void ff_gradfun_blur_line_movdqu_sse2(intptr_t x, uint16_t *buf,
uint16_t
*
buf1
,
uint16_t
*
dc
,
uint16_t
*
buf1
,
uint16_t
*
dc
,
uint8_t
*
src1
,
uint8_t
*
src2
);
uint8_t
*
src1
,
uint8_t
*
src2
);
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
static
void
gradfun_filter_line
(
uint8_t
*
dst
,
uint8_t
*
src
,
uint16_t
*
dc
,
static
void
gradfun_filter_line
(
uint8_t
*
dst
,
uint8_t
*
src
,
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
,
int
alignment
)
int
alignment
)
...
@@ -84,11 +84,11 @@ static void gradfun_blur_line_sse2(uint16_t *dc, uint16_t *buf, uint16_t *buf1,
...
@@ -84,11 +84,11 @@ static void gradfun_blur_line_sse2(uint16_t *dc, uint16_t *buf, uint16_t *buf1,
dc
+
width
,
src
+
width
*
2
,
dc
+
width
,
src
+
width
*
2
,
src
+
width
*
2
+
src_linesize
);
src
+
width
*
2
+
src_linesize
);
}
}
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
av_cold
void
ff_gradfun_init_x86
(
GradFunContext
*
gf
)
av_cold
void
ff_gradfun_init_x86
(
GradFunContext
*
gf
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
if
(
EXTERNAL_MMXEXT
(
cpu_flags
))
if
(
EXTERNAL_MMXEXT
(
cpu_flags
))
...
@@ -98,5 +98,5 @@ av_cold void ff_gradfun_init_x86(GradFunContext *gf)
...
@@ -98,5 +98,5 @@ av_cold void ff_gradfun_init_x86(GradFunContext *gf)
if
(
EXTERNAL_SSE2
(
cpu_flags
))
if
(
EXTERNAL_SSE2
(
cpu_flags
))
gf
->
blur_line
=
gradfun_blur_line_sse2
;
gf
->
blur_line
=
gradfun_blur_line_sse2
;
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavfilter/x86/vf_hqdn3d_init.c
View file @
39e208f4
...
@@ -38,10 +38,10 @@ void ff_hqdn3d_row_16_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant,
...
@@ -38,10 +38,10 @@ void ff_hqdn3d_row_16_x86(uint8_t *src, uint8_t *dst, uint16_t *line_ant,
av_cold
void
ff_hqdn3d_init_x86
(
HQDN3DContext
*
hqdn3d
)
av_cold
void
ff_hqdn3d_init_x86
(
HQDN3DContext
*
hqdn3d
)
{
{
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
hqdn3d
->
denoise_row
[
8
]
=
ff_hqdn3d_row_8_x86
;
hqdn3d
->
denoise_row
[
8
]
=
ff_hqdn3d_row_8_x86
;
hqdn3d
->
denoise_row
[
9
]
=
ff_hqdn3d_row_9_x86
;
hqdn3d
->
denoise_row
[
9
]
=
ff_hqdn3d_row_9_x86
;
hqdn3d
->
denoise_row
[
10
]
=
ff_hqdn3d_row_10_x86
;
hqdn3d
->
denoise_row
[
10
]
=
ff_hqdn3d_row_10_x86
;
hqdn3d
->
denoise_row
[
16
]
=
ff_hqdn3d_row_16_x86
;
hqdn3d
->
denoise_row
[
16
]
=
ff_hqdn3d_row_16_x86
;
#endif
/* HAVE_
Y
ASM */
#endif
/* HAVE_
X86
ASM */
}
}
libavresample/x86/Makefile
View file @
39e208f4
...
@@ -4,6 +4,6 @@ OBJS += x86/audio_convert_init.o \
...
@@ -4,6 +4,6 @@ OBJS += x86/audio_convert_init.o \
OBJS-$(CONFIG_XMM_CLOBBER_TEST)
+=
x86/w64xmmtest.o
OBJS-$(CONFIG_XMM_CLOBBER_TEST)
+=
x86/w64xmmtest.o
YASM-OBJS
+=
x86/audio_convert.o
\
X86ASM-OBJS
+=
x86/audio_convert.o
\
x86/audio_mix.o
\
x86/audio_mix.o
\
x86/dither.o
\
x86/dither.o
\
libavutil/x86/Makefile
View file @
39e208f4
...
@@ -3,8 +3,8 @@ OBJS += x86/cpu.o \
...
@@ -3,8 +3,8 @@ OBJS += x86/cpu.o \
x86/imgutils_init.o
\
x86/imgutils_init.o
\
x86/lls_init.o
\
x86/lls_init.o
\
YASM-OBJS
+=
x86/cpuid.o
\
X86ASM-OBJS
+=
x86/cpuid.o
\
x86/emms.o
\
x86/emms.o
\
x86/float_dsp.o
\
x86/float_dsp.o
\
x86/imgutils.o
\
x86/imgutils.o
\
x86/lls.o
\
x86/lls.o
\
libavutil/x86/cpu.c
View file @
39e208f4
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "libavutil/cpu.h"
#include "libavutil/cpu.h"
#include "libavutil/cpu_internal.h"
#include "libavutil/cpu_internal.h"
#if HAVE_
Y
ASM
#if HAVE_
X86
ASM
#define cpuid(index, eax, ebx, ecx, edx) \
#define cpuid(index, eax, ebx, ecx, edx) \
ff_cpu_cpuid(index, &eax, &ebx, &ecx, &edx)
ff_cpu_cpuid(index, &eax, &ebx, &ecx, &edx)
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
#define cpuid_test() 1
#define cpuid_test() 1
#elif HAVE_
Y
ASM
#elif HAVE_
X86
ASM
#define cpuid_test ff_cpu_cpuid_test
#define cpuid_test ff_cpu_cpuid_test
...
...
libswscale/x86/Makefile
View file @
39e208f4
...
@@ -4,6 +4,6 @@ OBJS += x86/rgb2rgb.o \
...
@@ -4,6 +4,6 @@ OBJS += x86/rgb2rgb.o \
OBJS-$(CONFIG_XMM_CLOBBER_TEST)
+=
x86/w64xmmtest.o
OBJS-$(CONFIG_XMM_CLOBBER_TEST)
+=
x86/w64xmmtest.o
YASM-OBJS
+=
x86/input.o
\
X86ASM-OBJS
+=
x86/input.o
\
x86/output.o
\
x86/output.o
\
x86/scale.o
\
x86/scale.o
\
libswscale/x86/rgb2rgb_template.c
View file @
39e208f4
...
@@ -1945,7 +1945,7 @@ static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, ui
...
@@ -1945,7 +1945,7 @@ static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, ui
}
}
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX */
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX */
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2 && HAVE_
Y
ASM
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2 && HAVE_
X86
ASM
void
RENAME
(
ff_nv12ToUV
)(
uint8_t
*
dstU
,
uint8_t
*
dstV
,
void
RENAME
(
ff_nv12ToUV
)(
uint8_t
*
dstU
,
uint8_t
*
dstV
,
const
uint8_t
*
src
,
const
uint8_t
*
unused
,
int
w
,
const
uint8_t
*
src
,
const
uint8_t
*
unused
,
int
w
,
uint32_t
*
unused2
);
uint32_t
*
unused2
);
...
@@ -2538,7 +2538,7 @@ static av_cold void RENAME(rgb2rgb_init)(void)
...
@@ -2538,7 +2538,7 @@ static av_cold void RENAME(rgb2rgb_init)(void)
#if !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX
#if !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX
interleaveBytes
=
RENAME
(
interleaveBytes
);
interleaveBytes
=
RENAME
(
interleaveBytes
);
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX */
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX */
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2 && HAVE_
Y
ASM
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2 && HAVE_
X86
ASM
deinterleaveBytes
=
RENAME
(
deinterleaveBytes
);
deinterleaveBytes
=
RENAME
(
deinterleaveBytes
);
#endif
#endif
}
}
tests/checkasm/Makefile
View file @
39e208f4
...
@@ -21,7 +21,7 @@ CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
...
@@ -21,7 +21,7 @@ CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
CHECKASMOBJS-$(ARCH_AARCH64)
+=
aarch64/checkasm.o
CHECKASMOBJS-$(ARCH_AARCH64)
+=
aarch64/checkasm.o
CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL)
+=
arm/checkasm.o
CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL)
+=
arm/checkasm.o
CHECKASMOBJS-$(HAVE_
YASM)
+=
x86/checkasm.o
CHECKASMOBJS-$(HAVE_
X86ASM)
+=
x86/checkasm.o
CHECKASMOBJS
+=
$
(
CHECKASMOBJS-yes
)
checkasm.o
CHECKASMOBJS
+=
$
(
CHECKASMOBJS-yes
)
checkasm.o
CHECKASMOBJS
:=
$
(
sort
$
(
CHECKASMOBJS:%
=
tests/checkasm/%
))
CHECKASMOBJS
:=
$
(
sort
$
(
CHECKASMOBJS:%
=
tests/checkasm/%
))
...
...
tests/checkasm/checkasm.h
View file @
39e208f4
...
@@ -89,7 +89,7 @@ static av_unused void *func_ref, *func_new;
...
@@ -89,7 +89,7 @@ static av_unused void *func_ref, *func_new;
/* Call the reference function */
/* Call the reference function */
#define call_ref(...) ((func_type *)func_ref)(__VA_ARGS__)
#define call_ref(...) ((func_type *)func_ref)(__VA_ARGS__)
#if ARCH_X86 && HAVE_
Y
ASM
#if ARCH_X86 && HAVE_
X86
ASM
/* Verifies that clobbered callee-saved registers are properly saved and restored
/* Verifies that clobbered callee-saved registers are properly saved and restored
* and that either no MMX registers are touched or emms is issued */
* and that either no MMX registers are touched or emms is issued */
void
checkasm_checked_call
(
void
*
func
,
...);
void
checkasm_checked_call
(
void
*
func
,
...);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment