Rockbox mail archive
Subject: Re: Log base 2
From: Philipp Pertermann (philipp.pertermann_at_web.de)
From: "Jeff Waltzer"
> One could do a primitive approximation of a Log base 2
> 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.
Page was last modified "Jan 10 2012" The Rockbox Crew