ARM: replace some #if with if()
authorMåns Rullgård <mans@mansr.com>
Sun, 4 Oct 2009 13:13:06 +0000 (13:13 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 4 Oct 2009 13:13:06 +0000 (13:13 +0000)
Originally committed as revision 20165 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/arm/dsputil_init_arm.c

index c9fc12c146f1856877bf0762775df4cc739aeca5..4147d4882676c18d3abda7677e2d6ab08d33a172 100644 (file)
@@ -117,14 +117,7 @@ void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx)
 
     if (HAVE_ARMV5TE) ff_dsputil_init_armv5te(c, avctx);
     if (HAVE_ARMV6)   ff_dsputil_init_armv6(c, avctx);
-
-#if HAVE_IWMMXT
-    dsputil_init_iwmmxt(c, avctx);
-#endif
-#if HAVE_ARMVFP
-    ff_dsputil_init_vfp(c, avctx);
-#endif
-#if HAVE_NEON
-    ff_dsputil_init_neon(c, avctx);
-#endif
+    if (HAVE_IWMMXT)  dsputil_init_iwmmxt(c, avctx);
+    if (HAVE_ARMVFP)  ff_dsputil_init_vfp(c, avctx);
+    if (HAVE_NEON)    ff_dsputil_init_neon(c, avctx);
 }