Subject: slightly faster mpg123 on m68k
To: None <port-m68k@netbsd.org>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: port-m68k
Date: 02/17/1999 21:25:06
Hello,

I've added m68k awareness to the mgp123 package. The infamous get1bit()
function is an inline function now (expanding to about 5 instructions, 1 being
a bfextu doing the dirty work). This speeds up mp3 decoding by about 6% (at
least for the 128 kbit/s examples I tried) on a 68060. 

On 68060/50 MHz, we were fast enough (about 2/3 real-time) anyway, but 6% more
margin isn't too bad, I guess...

I'd be interested to hear how this new one performs compared to the old 
generic stuff on other CPUs (m68040, m68030)...

cd work/mpg123-059h/, and do either

make clean; make netbsd-m68k

or

make clean; make netbsd

and do

time ./mpg123 -s some.file.mp3 > /var/tmp/some.file.pcm 
time ./mpg123 -s some.file.mp3 > /var/tmp/some.file.pcm 

please (two times, be sure the filesystem cache is in a similar state.

You can play directly if you want.


Regards,
	Ignatios