[android-developers] Re: Floating Point Support -- Determine at runtime?

2009-10-21 Thread joelt
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 wrote: > On Oct 21, 11:20 am, fadden wrote:

[android-developers] Re: Floating Point Support -- Determine at runtime?

2009-10-21 Thread fadden
On Oct 21, 11:20 am, fadden wrote: > On Oct 20, 6:11 pm, joelt 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 d

[android-developers] Re: Floating Point Support -- Determine at runtime?

2009-10-21 Thread fadden
On Oct 20, 6:11 pm, joelt wrote: > Is there a way to determine if the system supports floating point? > That way, I could choose between two algorithms to use. All Android systems support floating point, but I assume you're trying to figure out if FP is handled by hardware rather than software.