summaryrefslogtreecommitdiff
path: root/libs/soundtouch/cpu_detect_x86_gcc.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-18 06:07:08 +0000
committerDavid Robillard <d@drobilla.net>2007-03-18 06:07:08 +0000
commit99904735e066804358f1d0bd138a84f1e9ecda91 (patch)
tree71a924cf1660b5b00231275bd481bbd27094dd9b /libs/soundtouch/cpu_detect_x86_gcc.cpp
parenteb270e70a12c410cdd98585ad25bb6d8e384a4f5 (diff)
Merged with trunk R1612.
git-svn-id: svn://localhost/ardour2/branches/midi@1614 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/soundtouch/cpu_detect_x86_gcc.cpp')
-rw-r--r--libs/soundtouch/cpu_detect_x86_gcc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/soundtouch/cpu_detect_x86_gcc.cpp b/libs/soundtouch/cpu_detect_x86_gcc.cpp
index b4ccdc2834..b58b80fa06 100644
--- a/libs/soundtouch/cpu_detect_x86_gcc.cpp
+++ b/libs/soundtouch/cpu_detect_x86_gcc.cpp
@@ -80,6 +80,7 @@ uint detectCPUextensions(void)
if (_dwDisabledISA == 0xffffffff) return 0;
asm volatile(
+ "\n\tpushl %%ebx" // store ebx
"\n\txor %%esi, %%esi" // clear %%esi = result register
// check if 'cpuid' instructions is available by toggling eflags bit 21
@@ -128,6 +129,7 @@ uint detectCPUextensions(void)
"\n\tend:"
"\n\tmov %%esi, %0"
+ "\n\tpopl %%ebx"
: "=r" (res)
: /* no inputs */