Revision 27af15dc libavutil/x86_cpu.h

View differences:

libavutil/x86_cpu.h
22 22
#define FFMPEG_X86CPU_H
23 23

  
24 24
#ifdef ARCH_X86_64
25
#  define REG_a "rax"
26
#  define REG_b "rbx"
27
#  define REG_c "rcx"
28
#  define REG_d "rdx"
29
#  define REG_D "rdi"
30
#  define REG_S "rsi"
31
#  define PTR_SIZE "8"
25
#    define REG_a "rax"
26
#    define REG_b "rbx"
27
#    define REG_c "rcx"
28
#    define REG_d "rdx"
29
#    define REG_D "rdi"
30
#    define REG_S "rsi"
31
#    define PTR_SIZE "8"
32 32

  
33
#  define REG_SP "rsp"
34
#  define REG_BP "rbp"
35
#  define REGBP   rbp
36
#  define REGa    rax
37
#  define REGb    rbx
38
#  define REGc    rcx
39
#  define REGSP   rsp
33
#    define REG_SP "rsp"
34
#    define REG_BP "rbp"
35
#    define REGBP   rbp
36
#    define REGa    rax
37
#    define REGb    rbx
38
#    define REGc    rcx
39
#    define REGSP   rsp
40 40

  
41 41
#else
42 42

  
43
#  define REG_a "eax"
44
#  define REG_b "ebx"
45
#  define REG_c "ecx"
46
#  define REG_d "edx"
47
#  define REG_D "edi"
48
#  define REG_S "esi"
49
#  define PTR_SIZE "4"
43
#    define REG_a "eax"
44
#    define REG_b "ebx"
45
#    define REG_c "ecx"
46
#    define REG_d "edx"
47
#    define REG_D "edi"
48
#    define REG_S "esi"
49
#    define PTR_SIZE "4"
50 50

  
51
#  define REG_SP "esp"
52
#  define REG_BP "ebp"
53
#  define REGBP   ebp
54
#  define REGa    eax
55
#  define REGb    ebx
56
#  define REGc    ecx
57
#  define REGSP   esp
51
#    define REG_SP "esp"
52
#    define REG_BP "ebp"
53
#    define REGBP   ebp
54
#    define REGa    eax
55
#    define REGb    ebx
56
#    define REGc    ecx
57
#    define REGSP   esp
58 58
#endif
59 59

  
60 60
#if defined(ARCH_X86_64) || (defined(ARCH_X86_32) && defined(HAVE_EBX_AVAILABLE) && defined(HAVE_EBP_AVAILABLE))
61
#  define HAVE_7REGS 1
61
#    define HAVE_7REGS 1
62 62
#endif
63 63

  
64 64
#if defined(ARCH_X86_64) && defined(PIC)
65
#  define BROKEN_RELOCATIONS 1
65
#    define BROKEN_RELOCATIONS 1
66 66
#endif
67 67

  
68 68
#endif /* FFMPEG_X86CPU_H */

Also available in: Unified diff