X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsoundtouch%2Fcpu_detect_x86_gcc.cpp;h=b58b80fa06f0a6cadf890bd5190c9d4a2c6ef608;hb=99904735e066804358f1d0bd138a84f1e9ecda91;hp=b4ccdc2834521c7dd41d29e3a9afa62d9516ab80;hpb=eb270e70a12c410cdd98585ad25bb6d8e384a4f5;p=ardour.git 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 */