On Sat, Jan 29, 2011 at 01:22:10PM +0100, Philipp Überbacher wrote:
> I thought that log2() might use a different routine if the argument is a
There are very good reasons why math routines don't do such things.
> Why did you choose 1e-6 specifically?
It does the job. 1e-6f will also work for single precision.
> ... Without optimisation the output is quite
That could well be completely different on an another CPU and compiler,
and even more so if tested ***in context***. Such tests are really
pointless, in particular if you consider the actual use of this code.
It isn't executed 100 times for each audio sample.
> If the optimised code really is the same is it worth it to use funky bit
There's nothing funky about them, they are part of C and C++.
Ciao,
--
FA
There are three of them, and Alleline.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.