summaryrefslogtreecommitdiff
path: root/libavcodec/x86/snowdsp_mmx.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-22 18:46:52 +0100
committerMans Rullgard <mans@mansr.com>2012-06-25 13:23:12 +0100
commit8123e0901fc7faa3d7dcf80af9ed0d874f8e7a06 (patch)
treec974aee3e8eabea7a6a6cd3c2dc37e3a08d0f936 /libavcodec/x86/snowdsp_mmx.c
parent145a8096d53c20da7898539e521e6d4267ab2f09 (diff)
x86: place some inline asm under #if HAVE_INLINE_ASM
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/snowdsp_mmx.c')
-rw-r--r--libavcodec/x86/snowdsp_mmx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/snowdsp_mmx.c b/libavcodec/x86/snowdsp_mmx.c
index 729a13a4ce..38f3246fda 100644
--- a/libavcodec/x86/snowdsp_mmx.c
+++ b/libavcodec/x86/snowdsp_mmx.c
@@ -26,6 +26,8 @@
#include "libavcodec/dwt.h"
#include "dsputil_mmx.h"
+#if HAVE_INLINE_ASM
+
static void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, IDWTELEM *temp, int width){
const int w2= (width+1)>>1;
const int w_l= (width>>1);
@@ -871,8 +873,11 @@ static void ff_snow_inner_add_yblock_mmx(const uint8_t *obmc, const int obmc_str
ff_snow_inner_add_yblock(obmc, obmc_stride, block, b_w, b_h, src_x,src_y, src_stride, sb, add, dst8);
}
+#endif /* HAVE_INLINE_ASM */
+
void ff_dwt_init_x86(DWTContext *c)
{
+#if HAVE_INLINE_ASM
int mm_flags = av_get_cpu_flags();
if (mm_flags & AV_CPU_FLAG_MMX) {
@@ -893,4 +898,5 @@ void ff_dwt_init_x86(DWTContext *c)
c->inner_add_yblock = ff_snow_inner_add_yblock_mmx;
}
}
+#endif /* HAVE_INLINE_ASM */
}