On Feb 22, 12:34 pm, "tdom...@googlemail.com" <tdom...@googlemail.com> wrote: > if the hardware has a FPU, will it be automatically used, both in java > and in native code? > for the native code part: > will the floating point stuff be transformed into softfloat > instructions at compile time, or will the exceptions be caught in the > kernel, and the transformation therefor be handled at runtime?
Java code will take advantage of it automatically. Native code must be recompiled. The NDK currently only supports soft float, but that will change in an upcoming release. Native code is either built for hardware float or compiler-supported software emulation. Attempting to use FP instructions on a device without an FPU will earn you a SIGILL. The performance of kernel exception handling is too awful to consider. -- 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