On Sat, Jan 29, 2011 at 12:07:12PM +0100, Philipp Überbacher wrote:
> Took me a while to figure out that libm is part of glibc :)
It isn't. But it lives in /lib, not /usr/lib
> > k = (int)(log2(x) + 1e-6)
Everything floating point 'suffers from the same problem'.
Even addition. (1/3.0 + 1/3.0 + 1/3.0 == 1.0) doesn't have
to result in true.
> > int m, k;
It's a single CPU cycle on most processors, and on some (e.g. ARM)
it can even be combined with other instructions.
There are three of them, and Alleline.
Linux-audio-user mailing list