summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-08-11 17:30:33 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-08-11 17:30:33 -0400
commit53bc2ba2c11b95af09b0a52fe7ae440912437d6e (patch)
tree721ac751917944cbcfb6a1e3a95e1092d5602d32
parentc0ad97c179d6b7791fec1aaf6d49e63c20f6c817 (diff)
#ifdef out AVX detection on APPLE
-rw-r--r--libs/pbd/fpu.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc
index 9fde6ab133..869c0b66fb 100644
--- a/libs/pbd/fpu.cc
+++ b/libs/pbd/fpu.cc
@@ -39,8 +39,8 @@ using namespace std;
/* This function is provided by MSVC are part of the compiler instrinsics. We
* don't care about this on OS X (though perhaps we should), but we need to
- * test AVX support on Linux also. It doesn't hurt that this works on OS X
- * also.
+ * test AVX support on Linux also. This doesn't work on OS X because
+ * the compiler is different there.
*/
#if __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4
@@ -112,6 +112,7 @@ FPU::FPU ()
#endif /* _LP64 */
#endif /* PLATFORM_WINDOWS */
+#ifndef __APPLE__
if (cpuflags & ((1<<27) /* AVX */ |(1<<28) /* XGETBV */)) {
std::cerr << "Looks like AVX\n";
@@ -132,6 +133,7 @@ FPU::FPU ()
_flags = Flags (_flags | (HasAVX) );
}
}
+#endif /* !__APPLE__ */
if (cpuflags & (1<<25)) {
_flags = Flags (_flags | (HasSSE|HasFlushToZero));