dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Log base 2

Re: Log base 2

From: Jack Peel <>
Date: Thu, 19 Sep 2002 14:29:36 -0700

Ahh.. after a little research I found out where the 20 came from in my
mind :) it's 20 log(x/y) for a ratio in dB (volts that is) :) But it's
still base 10
I believe it is still a log base 10 function. Hmm.. do we have any
at archos that could tell us how to calculate this (they must have
done it :) Maybe not...


Philipp Pertermann wrote:

> From: "Jeff Waltzer"
> >
> > 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.
> I believe I already found the perfect link. I just hate math
> and have been to lazy to understand that yet.
> Phil
Received on 2002-09-19

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy