diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-27 17:21:23 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-27 17:21:23 +0000 |
commit | 35f296e306b308a07769cc0991e2001ed4bcc063 (patch) | |
tree | 9d0d010f9a2a4a16adaec4185d2c04cf7bc999a7 /mp3lib | |
parent | 748cbb6290171dccc57146cfd3a23c81d839a0dd (diff) |
Beginning sse optimization of dct code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1394 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r-- | mp3lib/Makefile | 4 | ||||
-rw-r--r-- | mp3lib/sr1.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/mp3lib/Makefile b/mp3lib/Makefile index 0ff48ca059..ed61c31604 100644 --- a/mp3lib/Makefile +++ b/mp3lib/Makefile @@ -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 diff --git a/mp3lib/sr1.c b/mp3lib/sr1.c index 86b28748a1..688226cad8 100644 --- a/mp3lib/sr1.c +++ b/mp3lib/sr1.c @@ -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 |