[vlc-devel] commit: Compile-time detection for FPU on ARM EABI ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 16 14:51:24 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 16 15:47:18 2009 +0300| [3e7e3cc6dc26cb15a47d46411329b5d0540a6a4f] | committer: Rémi Denis-Courmont 

Compile-time detection for FPU on ARM EABI

(cherry picked from commit eaeba49bfbe8033e8096cbba716d01c5f2c1afbc)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e7e3cc6dc26cb15a47d46411329b5d0540a6a4f
---

 src/misc/cpu.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index bfaf139..df52d7d 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -259,6 +259,12 @@ uint32_t CPUCapabilities( void )
 #   endif
     return i_capabilities;
 
+#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__ )
 
 #   ifdef CAN_COMPILE_ALTIVEC




More information about the vlc-devel mailing list