[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:48:19 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 16 15:47:18 2009 +0300| [eaeba49bfbe8033e8096cbba716d01c5f2c1afbc] | committer: Rémi Denis-Courmont
Compile-time detection for FPU on ARM EABI
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eaeba49bfbe8033e8096cbba716d01c5f2c1afbc
---
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 c77b2ec..463c835 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -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;
More information about the vlc-devel
mailing list