changeset 4149:9dde9f96f860

runtime cpudetect suppport
author alex
date Mon, 14 Jan 2002 16:15:59 +0000
parents 3b29772a4fb2
children 01d0a5fabf65
files mp3lib/decod386.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/decod386.c	Mon Jan 14 10:34:38 2002 +0000
+++ b/mp3lib/decod386.c	Mon Jan 14 16:15:59 2002 +0000
@@ -149,7 +149,7 @@
 
 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 @@
   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;