summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-17 23:08:19 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-17 23:08:19 +0000
commitb55aa9a90446c3f6a549b82e0313b221f0fc31ed (patch)
tree2d4bb1e447b3aa5620534ebd3fd7c4a53ee98af7 /libavcodec
parent3c9bcb42cf9887382330c8bb55f94060289a9b4d (diff)
get register names from x86_cpu.h
Originally committed as revision 12482 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/i386/cputest.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/i386/cputest.c b/libavcodec/i386/cputest.c
index 57b85ff9ce..92e3d64f18 100644
--- a/libavcodec/i386/cputest.c
+++ b/libavcodec/i386/cputest.c
@@ -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\