[vlc-commits] MIPS: enable HAVE_FPU on hard-float builds.

Konstantin Pavlov git at videolan.org
Thu Dec 27 09:46:15 CET 2012


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Thu Dec 27 10:42:46 2012 +0400| [657885538abbc940c72c11dd2aebc60646e2fd6e] | committer: Konstantin Pavlov

MIPS: enable HAVE_FPU on hard-float builds.

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

 contrib/src/main.mak |    2 ++
 include/vlc_cpu.h    |    3 +++
 2 files changed, 5 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index e8ad7e5..598ea54 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -172,6 +172,8 @@ ifeq ($(call cppcheck, __SOFTFP__),)
 HAVE_FPU = 1
 endif
 endif
+else ifneq ($(call cppcheck, __mips_hard_float),)
+HAVE_FPU = 1
 endif
 
 ACLOCAL_AMFLAGS += -I$(PREFIX)/share/aclocal
diff --git a/include/vlc_cpu.h b/include/vlc_cpu.h
index aefb508..0a9d6e8 100644
--- a/include/vlc_cpu.h
+++ b/include/vlc_cpu.h
@@ -179,6 +179,9 @@ VLC_API unsigned vlc_CPU(void);
 # elif defined (__sparc__)
 #  define HAVE_FPU 1
 
+# elif defined (__mips_hard_float)
+#  define HAVE_FPU 1
+
 # else
 /**
  * Are single precision floating point operations "fast"?



More information about the vlc-commits mailing list