[FFmpeg-cvslog] float_dsp: Replace arch optimization ifdefs by if cascade

Diego Biurrun git at videolan.org
Sat Mar 22 19:35:25 CET 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Mar 20 14:16:25 2014 +0100| [46caba4a65237c006ab54b0c16ecc00d21dedda1] | committer: Diego Biurrun

float_dsp: Replace arch optimization ifdefs by if cascade

Arch-specific optimizations are handled this way everywhere else.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46caba4a65237c006ab54b0c16ecc00d21dedda1
---

 libavutil/float_dsp.c |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/libavutil/float_dsp.c b/libavutil/float_dsp.c
index 6ff7e2f..aabc800 100644
--- a/libavutil/float_dsp.c
+++ b/libavutil/float_dsp.c
@@ -124,15 +124,14 @@ av_cold void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact)
     fdsp->butterflies_float = butterflies_float_c;
     fdsp->scalarproduct_float = avpriv_scalarproduct_float_c;
 
-#if   ARCH_AARCH64
-    ff_float_dsp_init_aarch64(fdsp);
-#elif ARCH_ARM
-    ff_float_dsp_init_arm(fdsp);
-#elif ARCH_PPC
-    ff_float_dsp_init_ppc(fdsp, bit_exact);
-#elif ARCH_X86
-    ff_float_dsp_init_x86(fdsp);
-#endif
+    if (ARCH_AARCH64)
+        ff_float_dsp_init_aarch64(fdsp);
+    if (ARCH_ARM)
+        ff_float_dsp_init_arm(fdsp);
+    if (ARCH_PPC)
+        ff_float_dsp_init_ppc(fdsp, bit_exact);
+    if (ARCH_X86)
+        ff_float_dsp_init_x86(fdsp);
 }
 
 #ifdef TEST



More information about the ffmpeg-cvslog mailing list