diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-23 17:09:58 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-23 17:09:58 +0000 |
commit | 58d3b8ec238540ccdfd5111246e4eae53b33e525 (patch) | |
tree | cd9ceb20cf0adf5a020c80b76a7dc75469a393f0 /mp3lib/decod386.c | |
parent | b3b5c37c83a49d2639a02a6ca86d9c76cd47c4ba (diff) | |
download | mpv-58d3b8ec238540ccdfd5111246e4eae53b33e525.tar.bz2 mpv-58d3b8ec238540ccdfd5111246e4eae53b33e525.tar.xz |
Fixing compilation on non-MMX but x86 systems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4322 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/decod386.c')
-rw-r--r-- | mp3lib/decod386.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mp3lib/decod386.c b/mp3lib/decod386.c index 643e17bbd7..5928270958 100644 --- a/mp3lib/decod386.c +++ b/mp3lib/decod386.c @@ -13,6 +13,13 @@ #include "../config.h" +#ifndef CAN_COMPILE_X86 +#ifdef ARCH_X86 +#define CAN_COMPILE_X86 +#endif +#endif + + #if 0 /* old WRITE_SAMPLE */ /* is portable */ @@ -149,7 +156,7 @@ static int synth_1to1_r(real *bandPtr,int channel,unsigned char *out,int *pnt) synth_func_t synth_func; -#if (defined(RUNTIME_CPUDETECT) && defined(CAN_COMPILE_X86_ASM)) || defined(HAVE_MMX) +#if defined(CAN_COMPILE_X86_ASM) int synth_1to1_MMX( real *bandPtr,int channel,short * samples) { static short buffs[2][2][0x110]; @@ -169,7 +176,7 @@ static int synth_1to1(real *bandPtr,int channel,unsigned char *out,int *pnt) int clip = 0; int bo1; /* optimized for x86 */ -#if (defined(RUNTIME_CPUDETECT) && defined(CAN_COMPILE_X86_ASM)) || defined(ARCH_X86) +#if defined(CAN_COMPILE_X86_ASM) if ( synth_func ) { int ret; |