Dead code elimination is enough to avoid undefined references in these cases.
int cpu_flags = av_get_cpu_flags();
const int dct_algo = avctx->dct_algo;
-#if HAVE_YASM
if (EXTERNAL_MMX(cpu_flags)) {
if (!high_bit_depth)
c->get_pixels = ff_get_pixels_mmx;
if (EXTERNAL_SSE2(cpu_flags))
if (!high_bit_depth)
c->get_pixels = ff_get_pixels_sse2;
-#endif /* HAVE_YASM */
#if HAVE_INLINE_ASM
if (INLINE_MMX(cpu_flags)) {
av_cold void ff_h264chroma_init_x86(H264ChromaContext *c, int bit_depth)
{
-#if HAVE_YASM
int high_bit_depth = bit_depth > 8;
int cpu_flags = av_get_cpu_flags();
c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_10_avx;
c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_10_avx;
}
-#endif
}
av_cold void ff_vorbisdsp_init_x86(VorbisDSPContext *dsp)
{
-#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
#if ARCH_X86_32
#endif /* ARCH_X86_32 */
if (EXTERNAL_SSE(cpu_flags))
dsp->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_sse;
-#endif /* HAVE_YASM */
}
av_cold void ff_yadif_init_x86(YADIFContext *yadif)
{
-#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
#if ARCH_X86_32
yadif->filter_line = ff_yadif_filter_line_sse2;
if (EXTERNAL_SSSE3(cpu_flags))
yadif->filter_line = ff_yadif_filter_line_ssse3;
-#endif /* HAVE_YASM */
}
av_cold void ff_audio_mix_init_x86(AudioMix *am)
{
-#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
if (EXTERNAL_SSE(cpu_flags)) {
SET_MIX_3_8_TO_1_2(6)
SET_MIX_3_8_TO_1_2(7)
SET_MIX_3_8_TO_1_2(8)
-#endif /* HAVE_YASM */
}