>>>>> "E" == Erik de Castro Lopo <[EMAIL PROTECTED]> writes:
E> How much double precision floating point code does LAME use?
IMHO, double precision is over spec for MP3 encoder/decoder. For
example, mpg123 uses only float(single precision).
An input file (like .wav file) has only 16 bit precision and dynamic
range(this value is selected from human hearing ability). And the
IEEE768 says single precision has 24 bit precision.
Current release of lame is mixed use of FLOAT(=float) and double.
I think this is not good because it takes type conversion.
See my version of lame. I changed all "double" into "FLOAT".
And we can select FLOAT from double and float depending on your
architechture. I think some architechtuer, like ALPHA chip, we will
get faster conversion defining FLOAT as double. On my linuxbox with
celeron 464MHz, I got about 10% speedup from defining FLOAT as float.
# My latest snapshot is available at
# http://www.isoternet.org/~tominaga/lame-1007.tar.bz2
---
Takehiro TOMINAGA // may the source be with you!
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )