public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Elimination of pow() in SBC code
@ 2004-11-27 23:51 Marcel Holtmann
  2004-11-28  1:57 ` Henryk Plötz
  2004-11-28  2:38 ` Brad Midgley
  0 siblings, 2 replies; 6+ messages in thread
From: Marcel Holtmann @ 2004-11-27 23:51 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Henryk,

the pow() function is the only reason for linking with -lm and it is
only used in one place with a limit range of parameters.

	scalefactor[ch][sb] = pow(2.0, (frame->scale_factor[ch][sb] + 1));

So what is the range of scale_factor[ch][sb]. From a quick testing a saw
that it ranges from 0 - 15. Is this always true? If yes, then I would
use a pre-calculated array for 2^x.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-28 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-27 23:51 [Bluez-devel] Elimination of pow() in SBC code Marcel Holtmann
2004-11-28  1:57 ` Henryk Plötz
2004-11-28 12:15   ` Marcel Holtmann
2004-11-28  2:38 ` Brad Midgley
2004-11-28 13:32   ` Marcel Holtmann
2004-11-28 15:57     ` Brad Midgley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox