]> git.sesse.net Git - vlc/commitdiff
* src/misc/cpu.c: no need to push/pop %rbx before cpuid on x86_64.
authorSam Hocevar <sam@videolan.org>
Sat, 1 Oct 2005 23:29:56 +0000 (23:29 +0000)
committerSam Hocevar <sam@videolan.org>
Sat, 1 Oct 2005 23:29:56 +0000 (23:29 +0000)
src/misc/cpu.c

index 4028b16834638a96fd6a44a868f1dc85d94baa5d..0c0c70005e9adc18570c49b47db78bb176707345 100644 (file)
@@ -86,10 +86,8 @@ uint32_t CPUCapabilities( void )
     /* Needed for x86 CPU capabilities detection */
 #   if defined( __x86_64__ )
 #       define cpuid( reg )                    \
-            asm volatile ( "push %%rbx\n\t"    \
-                           "cpuid\n\t"         \
+            asm volatile ( "cpuid\n\t"         \
                            "movl %%ebx,%1\n\t" \
-                           "pop %%rbx\n\t"     \
                          : "=a" ( i_eax ),     \
                            "=r" ( i_ebx ),     \
                            "=c" ( i_ecx ),     \