[x264-devel] ppc: fix build on certain PowerPC variants without Altivec

Roland Stigge git at videolan.org
Wed Apr 23 00:40:56 CEST 2014


x264 | branch: master | Roland Stigge <stigge at antcom.de> | Sun Mar 23 09:29:37 2014 -0700| [e260ea549226ae29832d8bc0dcfd20cffc8cf248] | committer: Jason Garrett-Glaser

ppc: fix build on certain PowerPC variants without Altivec

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=e260ea549226ae29832d8bc0dcfd20cffc8cf248
---

 common/cpu.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/cpu.c b/common/cpu.c
index 13bc6e1..818993e 100644
--- a/common/cpu.c
+++ b/common/cpu.c
@@ -338,6 +338,9 @@ uint32_t x264_cpu_detect( void )
 
 uint32_t x264_cpu_detect( void )
 {
+#ifdef __NO_FPRS__
+    return 0;
+#else
     static void (*oldsig)( int );
 
     oldsig = signal( SIGILL, sigill_handler );
@@ -357,6 +360,7 @@ uint32_t x264_cpu_detect( void )
     signal( SIGILL, oldsig );
 
     return X264_CPU_ALTIVEC;
+#endif
 }
 #endif
 



More information about the x264-devel mailing list