comparison postprocess_template.c @ 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
comparison
equal deleted inserted replaced
90:8e738e0a16f5 91:8879eafb9431
21 /** 21 /**
22 * @file postprocess_template.c 22 * @file postprocess_template.c
23 * mmx/mmx2/3dnow postprocess code. 23 * mmx/mmx2/3dnow postprocess code.
24 */ 24 */
25 25
26 #include "x86_cpu.h"
26 27
27 #ifdef ARCH_X86_64 28 #ifdef ARCH_X86_64
28 # define REGa rax
29 # define REGc rcx
30 # define REGd rdx
31 # define REG_a "rax"
32 # define REG_c "rcx"
33 # define REG_d "rdx"
34 # define REG_SP "rsp"
35 # define ALIGN_MASK "$0xFFFFFFFFFFFFFFF8" 29 # define ALIGN_MASK "$0xFFFFFFFFFFFFFFF8"
36 #else 30 #else
37 # define REGa eax
38 # define REGc ecx
39 # define REGd edx
40 # define REG_a "eax"
41 # define REG_c "ecx"
42 # define REG_d "edx"
43 # define REG_SP "esp"
44 # define ALIGN_MASK "$0xFFFFFFF8" 31 # define ALIGN_MASK "$0xFFFFFFF8"
45 #endif 32 #endif
46 33
47 34
48 #undef PAVGB 35 #undef PAVGB