mirror of https://git.ffmpeg.org/ffmpeg.git
float_dsp: Replace arch optimization ifdefs by if cascade
Arch-specific optimizations are handled this way everywhere else.
This commit is contained in:
parent
cc8163e1a3
commit
46caba4a65
|
@ -124,15 +124,14 @@ av_cold void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact)
|
||||||
fdsp->butterflies_float = butterflies_float_c;
|
fdsp->butterflies_float = butterflies_float_c;
|
||||||
fdsp->scalarproduct_float = avpriv_scalarproduct_float_c;
|
fdsp->scalarproduct_float = avpriv_scalarproduct_float_c;
|
||||||
|
|
||||||
#if ARCH_AARCH64
|
if (ARCH_AARCH64)
|
||||||
ff_float_dsp_init_aarch64(fdsp);
|
ff_float_dsp_init_aarch64(fdsp);
|
||||||
#elif ARCH_ARM
|
if (ARCH_ARM)
|
||||||
ff_float_dsp_init_arm(fdsp);
|
ff_float_dsp_init_arm(fdsp);
|
||||||
#elif ARCH_PPC
|
if (ARCH_PPC)
|
||||||
ff_float_dsp_init_ppc(fdsp, bit_exact);
|
ff_float_dsp_init_ppc(fdsp, bit_exact);
|
||||||
#elif ARCH_X86
|
if (ARCH_X86)
|
||||||
ff_float_dsp_init_x86(fdsp);
|
ff_float_dsp_init_x86(fdsp);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST
|
#ifdef TEST
|
||||||
|
|
Loading…
Reference in New Issue