diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c
index bb7862c914e57d996bd7d9b634b0e8a9bd62f0c4..1702b1023be0e926af9edd99beeba02720ae8c9d 100644
--- a/libavcodec/i386/dsputil_mmx.c
+++ b/libavcodec/i386/dsputil_mmx.c
@@ -893,7 +893,6 @@ static void clear_blocks_mmx(DCTELEM *blocks)
 static void just_return() { return; }
 #endif
 
-#ifndef TESTCPU_MAIN
 void dsputil_init_mmx(void)
 {
     mm_flags = mm_support();
@@ -1046,5 +1045,3 @@ void dsputil_set_bit_exact_mmx(void)
         }
     }
 }
-
-#endif