]> git.sesse.net Git - vlc/commitdiff
MIPS: enable HAVE_FPU on hard-float builds.
authorKonstantin Pavlov <thresh@videolan.org>
Thu, 27 Dec 2012 06:42:46 +0000 (10:42 +0400)
committerKonstantin Pavlov <thresh@videolan.org>
Thu, 27 Dec 2012 07:54:44 +0000 (11:54 +0400)
contrib/src/main.mak
include/vlc_cpu.h

index e8ad7e5be1ff49ffead8001d2f01bee3264fe185..598ea54c00deeba74f36b22ac432cc062c26d9ee 100644 (file)
@@ -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
index aefb508691c5857cb8befbf6671cc8f7b36817f9..0a9d6e85e963a9717da7dba544ae9d96f9a3ff83 100644 (file)
@@ -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"?