diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2001-09-01 17:57:20 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2001-09-01 17:57:20 +0000 |
commit | 4fff623cae914340d0968855630d21ca69826b9a (patch) | |
tree | 959e65b8116c2ea2e363a4ebe59d89cebbae4e11 /src/libffmpeg/libavcodec/dsputil.h | |
parent | 1e2f00c5f029673e77f4cbb02a01b1063873d5be (diff) | |
download | xine-lib-4fff623cae914340d0968855630d21ca69826b9a.tar.gz xine-lib-4fff623cae914340d0968855630d21ca69826b9a.tar.bz2 |
Enable MMX accelerated code on x86
Workaround a gcc-2.95.2 compiler bug in put_pixels_clamped_mmx,
add_pixels_clamped_mmx
Fix "debug" build for libffmpeg
CVS patchset: 541
CVS date: 2001/09/01 17:57:20
Diffstat (limited to 'src/libffmpeg/libavcodec/dsputil.h')
-rw-r--r-- | src/libffmpeg/libavcodec/dsputil.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/libffmpeg/libavcodec/dsputil.h b/src/libffmpeg/libavcodec/dsputil.h index 1189747f3..f5e22e4c4 100644 --- a/src/libffmpeg/libavcodec/dsputil.h +++ b/src/libffmpeg/libavcodec/dsputil.h @@ -74,23 +74,12 @@ static inline int block_permute_op(int j) void block_permute(INT16 *block); -#if defined(HAVE_MMX) +#if defined(ARCH_X86) -#define MM_MMX 0x0001 /* standard MMX */ -#define MM_3DNOW 0x0004 /* AMD 3DNOW */ -#define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */ -#define MM_SSE 0x0008 /* SSE functions */ -#define MM_SSE2 0x0010 /* PIV SSE2 functions */ +#include "cpu_accel.h" extern int mm_flags; -int mm_support(void); - -static inline void emms(void) -{ - __asm __volatile ("emms;":::"memory"); -} - #define emms_c() \ {\ if (mm_flags & MM_MMX)\ |