mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-16 12:00:24 +00:00
To do so, simply add these init files to X86ASM-OBJS instead of OBJS in the Makefile. The former is already used for the actual assembly files, but using them for the C init files just works, because the build system uses file extensions to derive whether it is a C or a NASM file. This avoids compiling unused function stubs and also reduces our reliance on DCE: We don't add %if checks to the asm files except for AVX, AVX2, FMA3, FMA4, XOP and AVX512, so all the MMX-SSE4 functions will be available. It also allows to remove HAVE_X86ASM checks in these init files. Reviewed-by: Kacper Michajłow <kasper93@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
14 lines
824 B
Makefile
14 lines
824 B
Makefile
OBJS += x86/cpu.o \
|
|
|
|
EMMS_OBJS_$(HAVE_MMX_INLINE)_$(HAVE_MMX_EXTERNAL)_$(HAVE_MM_EMPTY) = x86/emms.o
|
|
|
|
X86ASM-OBJS += x86/aes.o x86/aes_init.o \
|
|
x86/cpuid.o \
|
|
$(EMMS_OBJS__yes_) \
|
|
x86/fixed_dsp.o x86/fixed_dsp_init.o \
|
|
x86/float_dsp.o x86/float_dsp_init.o \
|
|
x86/imgutils.o x86/imgutils_init.o \
|
|
x86/lls.o x86/lls_init.o \
|
|
x86/tx_float.o x86/tx_float_init.o \
|
|
|
|
X86ASM-OBJS-$(CONFIG_PIXELUTILS) += x86/pixelutils.o x86/pixelutils_init.o
|