summaryrefslogtreecommitdiff
path: root/libavcodec/x86/fdct.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-09-16 13:58:26 +0200
committerDiego Biurrun <diego@biurrun.de>2013-10-06 22:02:25 +0200
commitce1e8045e04ed1a6e9c8c20e48ad3acf9cf664d2 (patch)
treeec04a1932d99531decba83fc8f5856e05ac5ffd1 /libavcodec/x86/fdct.c
parent9adbc3f3a1770fec9d24b8f5be3438a6c8e9e6a6 (diff)
x86: fdct: Employ more specific ifdefs
This avoids building mmxext and sse2 code when disabled by configure.
Diffstat (limited to 'libavcodec/x86/fdct.c')
-rw-r--r--libavcodec/x86/fdct.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libavcodec/x86/fdct.c b/libavcodec/x86/fdct.c
index bd76648b98..6d595aa76f 100644
--- a/libavcodec/x86/fdct.c
+++ b/libavcodec/x86/fdct.c
@@ -34,7 +34,7 @@
#include "libavutil/x86/asm.h"
#include "libavcodec/dct.h"
-#if HAVE_INLINE_ASM
+#if HAVE_MMX_INLINE
//////////////////////////////////////////////////////////////////////
//
@@ -556,6 +556,10 @@ void ff_fdct_mmx(int16_t *block)
}
}
+#endif /* HAVE_MMX_INLINE */
+
+#if HAVE_MMXEXT_INLINE
+
void ff_fdct_mmxext(int16_t *block)
{
DECLARE_ALIGNED(8, int64_t, align_tmp)[16];
@@ -574,6 +578,10 @@ void ff_fdct_mmxext(int16_t *block)
}
}
+#endif /* HAVE_MMXEXT_INLINE */
+
+#if HAVE_SSE2_INLINE
+
void ff_fdct_sse2(int16_t *block)
{
DECLARE_ALIGNED(16, int64_t, align_tmp)[16];
@@ -583,4 +591,4 @@ void ff_fdct_sse2(int16_t *block)
fdct_row_sse2(block1, block);
}
-#endif /* HAVE_INLINE_ASM */
+#endif /* HAVE_SSE2_INLINE */