Beginning sse optimization of dct code.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1394 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2001-07-27 17:21:23 +00:00
parent 748cbb6290
commit 35f296e306
2 changed files with 8 additions and 3 deletions

View File

@ -12,6 +12,10 @@ ifeq ($(TARGET_MMX),yes)
SRCS += decode_MMX.s dct64_MMX.s tabinit_MMX.s
OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o
endif
ifeq ($(TARGET_SSE),yes)
SRCS += dct64_sse.s
OBJS += dct64_sse.o
endif
ifeq ($(TARGET_3DNOW),yes)
SRCS += dct36_3dnow.s dct64_3dnow.s
OBJS += dct36_3dnow.o dct64_3dnow.o

View File

@ -367,6 +367,7 @@ static int tables_done_flag=0;
extern void dct64_MMX( void );
extern void dct64_MMX_3dnow( void );
extern void dct64_MMX_3dnowex( void );
extern void dct64_MMX_sse( void );
void (*dct64_MMX_func)( void );
// Init decoder tables. Call first, once!
@ -405,8 +406,8 @@ void MP3_Init(){
Note: It's ok, Since K8 will have SSE2 support and will much faster
of P4 ;)
*/
// printf( "mp3lib: Using SSE%s! optimized decore.\n",(_isse>1?"2":""));
printf( "mp3lib: Using Pentium%s optimized decore.\n",(_i586>1?"-MMX":""));
printf( "mp3lib: Using SSE%s! optimized decore.\n",(_isse>1?"2":""));
// printf( "mp3lib: Using Pentium%s optimized decore.\n",(_i586>1?"-MMX":""));
else
if(_3dnow)
printf( "mp3lib: Using AMD 3dnow%s! optimized decore.\n",(_3dnow>1?"-dsp(k7)":""));
@ -443,7 +444,7 @@ void MP3_Init(){
if(_isse)
{
synth_func=synth_1to1_MMX;
dct64_MMX_func=dct64_MMX;
dct64_MMX_func=dct64_MMX_sse;
}
else
#endif