summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2007-01-08 22:11:31 +0000
committerSampo Savolainen <v2@iki.fi>2007-01-08 22:11:31 +0000
commit40cfe86141f4e47f06d697b470475cfb2551b920 (patch)
treeb2a97fd15d34bf0a0f2f529c02f61f97d7167533
parentaef906ea9dcc494d0d639fe61098fa2bc19f0231 (diff)
More "elegant" fix for the 64 bit SSE issue, done with rbx restoring
reordering instead of the clobber list. Same reordering done for x86/32 as well. git-svn-id: svn://localhost/ardour2/trunk@1288 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/globals.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc
index e83a8ab2e4..e9d5a01c50 100644
--- a/libs/ardour/globals.cc
+++ b/libs/ardour/globals.cc
@@ -207,9 +207,9 @@ setup_hardware_optimization (bool try_optimization)
"mov $1, %%eax\n"
"pushl %%ebx\n"
"cpuid\n"
- "popl %%ebx\n"
"andl $33554432, %%edx\n"
"movl %%edx, %0\n"
+ "popl %%ebx\n"
: "=m" (use_sse)
:
: "%eax", "%ecx", "%edx", "memory");
@@ -219,12 +219,12 @@ setup_hardware_optimization (bool try_optimization)
"movq $1, %%rax\n"
"pushq %%rbx\n"
"cpuid\n"
- "popq %%rbx\n"
"andq $33554432, %%rdx\n"
"movq %%rdx, %0\n"
+ "popq %%rbx\n"
: "=m" (use_sse)
:
- : "%rax", "%rbx", "%rcx", "%rdx", "memory");
+ : "%rax", "%rcx", "%rdx", "memory");
#endif /* USE_X86_64_ASM */