Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Log base 2

Re: Log base 2

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Thu, 19 Sep 2002 23:06:02 +0200

On Thu, 19 Sep 2002 11:17:58 -0700 (PDT), Jeff Waltzer wrote:
> One could do a primitive approximation of a Log base 2 function by
> rotating the bits to find the left most location set bit. This
> would be good if all you need is a number from 0 to 15.

But didn't he need a Log base 10 function?

-- 
Linus Nielsen Feltzing, linus_at_haxx.se on 2002-09-19
Received on 2002-09-19

Page was last modified "Mon Nov 16 10:57:21 2020" The Rockbox Crew -- Privacy Policy