Android NDK: ARMv6 + VFP devices. wrong calculations, NaN, denormal numbers, VFP11 bug
问题 I wish to target ARMv6 with VFP Android device. I have following line in my Android.mk file to enable VFP LOCAL_CFLAGS := -marm -mfloat-abi=softfp -mfpu=vfp -Wmultichar I believe I target ARMv5 with VFP . I edited android-ndk-r8b\toolchains\arm-linux-androideabi-4.6\setup.mk to remove -msoft-float . I also tried with original setup.mk My code works fine 99.99% of time but some times goes crazy on ARMv6 devices. I have special code to detect when it goes crazy. Code glm::vec3 D = P1 - P2;