Only run MMX2 tests when MMX2 is available.
authorDiego Biurrun <diego@biurrun.de>
Thu, 7 Jun 2007 15:59:15 +0000 (15:59 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 7 Jun 2007 15:59:15 +0000 (15:59 +0000)
Originally committed as revision 9245 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dct-test.c

index 1e1c42bba50971dd467756b4e7733ba758b361f4..77aa4b69b24d54c862d699a2b6d3cb545b3deee3 100644 (file)
@@ -93,7 +93,9 @@ struct algo algos[] = {
 
 #ifdef HAVE_MMX
   DCT_ERROR("MMX",             0, ff_fdct_mmx,        fdct, NO_PERM),
+#ifdef HAVE_MMX2
   DCT_ERROR("MMX2",            0, ff_fdct_mmx2,       fdct, NO_PERM),
+#endif
 
 #ifdef CONFIG_GPL
   DCT_ERROR("LIBMPEG2-MMX",    1, ff_mmx_idct,        idct, MMX_PERM),