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: math

Re: math

From: Dave Wiard <lists_at_wiard.net>
Date: 2005-07-07

> Your code is right also. You code optimizes for speed (one less multiply)
> but is longer. His code has slightly smaller code size at the expense of
> one additional multiply.

Whoops. That cut&paste gets me into more trouble...

> If the possible values of x are really as limited as someone suggested
> they were, then the look-up table approach is the best for both code size
> and speed.

Yes, a lookup table would be much better. And yes, the possible integer
values really are 10^0...10^9 if you're to stay within [0,2^32-1].

Dave
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on Thu Jul 7 18:07:37 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa