Mercurial > mplayer.hg
diff liba52/resample.c @ 3908:0cc94b1eec0f
runtime cpudetect in liba52 way
| author | michael |
|---|---|
| date | Sun, 30 Dec 2001 21:38:53 +0000 |
| parents | 6312aa265429 |
| children | ef32c8bdee81 |
line wrap: on
line diff
--- a/liba52/resample.c Sun Dec 30 20:42:49 2001 +0000 +++ b/liba52/resample.c Sun Dec 30 21:38:53 2001 +0000 @@ -18,8 +18,8 @@ #include <inttypes.h> #include <stdio.h> #include "a52.h" +#include "mm_accel.h" #include "../config.h" -#include "../cpudetect.h" int (* a52_resample) (float * _f, int16_t * s16)=NULL; @@ -592,12 +592,12 @@ if(a52_resample==NULL) // only once please ;) { - if(gCpuCaps.hasMMX) fprintf(stderr, "Using MMX optimized resampler\n"); - else fprintf(stderr, "No accelerated resampler found\n"); + if(mm_accel & MM_ACCEL_X86_MMX) fprintf(stderr, "Using MMX optimized resampler\n"); + else fprintf(stderr, "No accelerated resampler found\n"); } #ifdef ARCH_X86 - if(gCpuCaps.hasMMX) a52_resample= a52_resample_MMX; + if(mm_accel & MM_ACCEL_X86_MMX) a52_resample= a52_resample_MMX; #else if(0); #endif
