summaryrefslogtreecommitdiff
path: root/libs/ardour/globals.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-08-12 00:01:02 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-08-12 00:01:02 -0400
commit6de707b3fcf8d341463c20a9426da4d0ec66709c (patch)
tree42b0bf575678a3dcfcc5f179bcb2e1099b08634c /libs/ardour/globals.cc
parentc86b82aa8ab61492b95abfc93fff7313e746b0ef (diff)
correctly switch between windows and (other) when deciding whether to use AVX code
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r--libs/ardour/globals.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc
index 4951161a72..5ab66da015 100644
--- a/libs/ardour/globals.cc
+++ b/libs/ardour/globals.cc
@@ -164,12 +164,17 @@ setup_hardware_optimization (bool try_optimization)
#if defined (ARCH_X86) && defined (BUILD_SSE_OPTIMIZATIONS)
-#if 0 /* AVX code doesn't compile on Linux yet, don't use generic code instead */
+#ifdef PLATFORM_WINDOWS
+ /* We have AVX-optimized code for Windows */
if (fpu->has_avx()) {
-
+#else
+ /* AVX code doesn't compile on Linux yet */
+
+ if (false) {
+#endif
info << "Using AVX optimized routines" << endmsg;
-
+
// AVX SET
compute_peak = x86_sse_avx_compute_peak;
find_peaks = x86_sse_avx_find_peaks;
@@ -180,9 +185,7 @@ setup_hardware_optimization (bool try_optimization)
generic_mix_functions = false;
- } else
-#endif
- if (fpu->has_sse()) {
+ } else if (fpu->has_sse()) {
info << "Using SSE optimized routines" << endmsg;