I have an algorithm that really runs too slow (on a G1) when in
floating point mode, but using integers it runs fine, although the
precision would be preferable from the float version, as it makes the
UI look crisper.

Joel

On Oct 21, 1:23 pm, fadden <fad...@android.com> wrote:
> On Oct 21, 11:20 am, fadden <fad...@android.com> wrote:
>
> > On Oct 20, 6:11 pm, joelt <j...@harpsoft.com> wrote:
> > One approach is to read /proc/cpuinfo and look for "vfp" on the
> > "Features" line.
>
> I should probably ask: what is it you're trying to accomplish?
>
> And should note: scanning for "vfp" will work for the current batch of
> ARM devices, but might get the wrong answer on future devices.  You
> might be better off taking FP and non-FP implementations of an
> interesting algorithm, running them 10,000 times, and checking how
> long they take to execute.  So long as you don't get unlucky
> interference from other processes, this should tell you what you
> really want to know: which approach is faster on the current device.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to