diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-06-22 18:46:52 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-06-25 13:23:12 +0100 |
commit | 8123e0901fc7faa3d7dcf80af9ed0d874f8e7a06 (patch) | |
tree | c974aee3e8eabea7a6a6cd3c2dc37e3a08d0f936 /libavcodec/x86/cavsdsp_mmx.c | |
parent | 145a8096d53c20da7898539e521e6d4267ab2f09 (diff) | |
download | ffmpeg-8123e0901fc7faa3d7dcf80af9ed0d874f8e7a06.tar.gz |
x86: place some inline asm under #if HAVE_INLINE_ASM
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/cavsdsp_mmx.c')
-rw-r--r-- | libavcodec/x86/cavsdsp_mmx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/cavsdsp_mmx.c b/libavcodec/x86/cavsdsp_mmx.c index f56f85932a..b3d2c27441 100644 --- a/libavcodec/x86/cavsdsp_mmx.c +++ b/libavcodec/x86/cavsdsp_mmx.c @@ -29,6 +29,8 @@ #include "libavcodec/cavsdsp.h" #include "dsputil_mmx.h" +#if HAVE_INLINE_ASM + /* in/out: mma=mma+mmb, mmb=mmb-mma */ #define SUMSUB_BA( a, b ) \ "paddw "#b", "#a" \n\t"\ @@ -477,10 +479,14 @@ static void ff_cavsdsp_init_3dnow(CAVSDSPContext* c, AVCodecContext *avctx) { c->cavs_idct8_add = cavs_idct8_add_mmx; } +#endif /* HAVE_INLINE_ASM */ + void ff_cavsdsp_init_mmx(CAVSDSPContext *c, AVCodecContext *avctx) { int mm_flags = av_get_cpu_flags(); +#if HAVE_INLINE_ASM if (mm_flags & AV_CPU_FLAG_MMX2) ff_cavsdsp_init_mmx2 (c, avctx); if (mm_flags & AV_CPU_FLAG_3DNOW) ff_cavsdsp_init_3dnow(c, avctx); +#endif /* HAVE_INLINE_ASM */ } |