]> code.delx.au - pulseaudio/commitdiff
sconv_sse: Exclude SSE optimizations for Mac OS X
authorEdward Rudd <urkle@outoforder.cc>
Tue, 22 Feb 2011 15:14:07 +0000 (10:14 -0500)
committerColin Guthrie <cguthrie@mandriva.org>
Tue, 22 Feb 2011 21:33:44 +0000 (21:33 +0000)
At least on 32bit compiles, there are not enough registers.

src/pulsecore/sconv_sse.c

index 3737af2a645ae993b32fab5629f01570c23d7f9a..2e74d744986bc45a2ddec92193fe59925e0d2c8b 100644 (file)
@@ -35,7 +35,7 @@
 #include "cpu-x86.h"
 #include "sconv.h"
 
-#if defined (__i386__) || defined (__amd64__)
+#if !defined(__APPLE__) && defined (__i386__) || defined (__amd64__)
 
 static const PA_DECLARE_ALIGNED (16, float, one[4]) = { 1.0, 1.0, 1.0, 1.0 };
 static const PA_DECLARE_ALIGNED (16, float, mone[4]) = { -1.0, -1.0, -1.0, -1.0 };
@@ -217,7 +217,7 @@ static void run_test (void) {
 
 
 void pa_convert_func_init_sse (pa_cpu_x86_flag_t flags) {
-#if defined (__i386__) || defined (__amd64__)
+#if !defined(__APPLE__) && defined (__i386__) || defined (__amd64__)
 
 #ifdef RUN_TEST
     run_test ();