From c35693f42bfd667ca7438bdc8c36a698e8769b49 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 14 Jan 2002 16:15:59 +0000 Subject: runtime cpudetect suppport git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4150 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp3lib/decod386.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mp3lib/decod386.c') diff --git a/mp3lib/decod386.c b/mp3lib/decod386.c index b5f9349eaa..643e17bbd7 100644 --- a/mp3lib/decod386.c +++ b/mp3lib/decod386.c @@ -149,7 +149,7 @@ static int synth_1to1_r(real *bandPtr,int channel,unsigned char *out,int *pnt) synth_func_t synth_func; -#ifdef HAVE_MMX +#if (defined(RUNTIME_CPUDETECT) && defined(CAN_COMPILE_X86_ASM)) || defined(HAVE_MMX) int synth_1to1_MMX( real *bandPtr,int channel,short * samples) { static short buffs[2][2][0x110]; @@ -168,7 +168,8 @@ static int synth_1to1(real *bandPtr,int channel,unsigned char *out,int *pnt) real *b0,(*buf)[0x110]; int clip = 0; int bo1; -#ifdef ARCH_X86 +/* optimized for x86 */ +#if (defined(RUNTIME_CPUDETECT) && defined(CAN_COMPILE_X86_ASM)) || defined(ARCH_X86) if ( synth_func ) { int ret; -- cgit v1.2.3