changeset 6507:18a7d03d5059 libavcodec

get register names from x86_cpu.h
author mru
date Mon, 17 Mar 2008 23:08:19 +0000
parents b495c754c3e1
children d9711ab4a934
files i386/cputest.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/i386/cputest.c	Mon Mar 17 23:08:14 2008 +0000
+++ b/i386/cputest.c	Mon Mar 17 23:08:19 2008 +0000
@@ -22,17 +22,10 @@
 
 #include <stdlib.h>
 #include "dsputil.h"
+#include "x86_cpu.h"
 
 #undef printf
 
-#ifdef ARCH_X86_64
-#  define REG_b "rbx"
-#  define REG_S "rsi"
-#else
-#  define REG_b "ebx"
-#  define REG_S "esi"
-#endif
-
 /* ebx saving is necessary for PIC. gcc seems unable to see it alone */
 #define cpuid(index,eax,ebx,ecx,edx)\
     asm volatile\