summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2008-06-24 23:51:17 +0000
committerAlexander Strange <astrange@ithinksw.com>2008-06-24 23:51:17 +0000
commitf67a10cd0c7fd9589e7fadfb8daeec8faba4cd39 (patch)
tree91d408a8901eec491f02e60dd4493d35fe10f9b5 /libavcodec/dsputil.h
parent8bf61f5ba9d0e1108281c5952e0f695a2bbacd4e (diff)
Define mm_flags/support to be 0 on architectures where they don't exist.
Make sure we don't try to set them if that's the case. This lets dct-test and fft-test build with --disable-mmx on x86, but not yet on ARM. Originally committed as revision 13957 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 0316a451b3..3b7b8791b8 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -578,6 +578,11 @@ extern int mm_flags;
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v)
#define STRIDE_ALIGN 16
+#else
+
+#define mm_flags 0
+#define mm_support() 0
+
#endif
#ifndef DECLARE_ALIGNED_8