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



Rockbox mail archive

Subject: Re: berzerk peak meter? Alpha testers wanted.

Re: berzerk peak meter? Alpha testers wanted.

From: Philipp Pertermann <philipp.pertermann_at_web.de>
Date: Tue, 24 Sep 2002 08:01:59 +0200

From: "Nielsen Linus (ext)"

> > void generate_log2_table (void)
> > {
> > int i;
> > for(i=0;i<16;i++)
> > log2_table[i]=(unsigned
> > short)(65536.0*log(1.0+(((double)i)/16.0))/log(2.0));
> > }
>
> Floating point? No no no!!! Not in this firmware!

Don't worry: thats only for generating the table values. We
will calculate them offline and put them into an unsigned
short array of constants.

Paul: Thank you very much. I'll try this.

Phil
Received on 2002-09-24

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