changeset 91:8879eafb9431 libpostproc

get register names from x86_cpu.h
author mru
date Mon, 17 Mar 2008 23:08:19 +0000
parents 8e738e0a16f5
children a8ed701a0873
files postprocess_template.c
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/postprocess_template.c	Sat Mar 15 16:15:47 2008 +0000
+++ b/postprocess_template.c	Mon Mar 17 23:08:19 2008 +0000
@@ -23,24 +23,11 @@
  * mmx/mmx2/3dnow postprocess code.
  */
 
+#include "x86_cpu.h"
 
 #ifdef ARCH_X86_64
-#  define REGa  rax
-#  define REGc  rcx
-#  define REGd  rdx
-#  define REG_a  "rax"
-#  define REG_c  "rcx"
-#  define REG_d  "rdx"
-#  define REG_SP "rsp"
 #  define ALIGN_MASK "$0xFFFFFFFFFFFFFFF8"
 #else
-#  define REGa  eax
-#  define REGc  ecx
-#  define REGd  edx
-#  define REG_a  "eax"
-#  define REG_c  "ecx"
-#  define REG_d  "edx"
-#  define REG_SP "esp"
 #  define ALIGN_MASK "$0xFFFFFFF8"
 #endif