From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ Mailing List Content-Type: text/plain Message-Id: <1101599506.18467.6.camel@pegasus> Mime-Version: 1.0 Subject: [Bluez-devel] Elimination of pow() in SBC code Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sun, 28 Nov 2004 00:51:46 +0100 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