Compile-time detection for FPU on ARM EABI
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 16 Aug 2009 12:47:18 +0000 (15:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 16 Aug 2009 12:48:09 +0000 (15:48 +0300)
src/misc/cpu.c

index c77b2ec..463c835 100644 (file)
@@ -226,6 +226,12 @@ out:
     signal( SIGILL, pf_sigill );
 #   endif
 
+#elif defined( __arm__ )
+#   if defined( __ARM_EABI__ ) && !defined( __SOFTFP__ )
+    i_capabilities |= CPU_CAPABILITY_FPU;
+#   endif
+    return i_capabilities;
+
 #elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ )
 
     i_capabilities |= CPU_CAPABILITY_FPU;