diff options
author | Luca Abeni <lucabe72@email.it> | 2006-07-03 10:52:07 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-07-03 10:52:07 +0000 |
commit | 9c39071d6de074c6584b21b6c38adf498102a686 (patch) | |
tree | f26e4fdb834dd2cf585d9597abbf8d2eb56d1bdb /libavutil/x86_cpu.h | |
parent | d6950e91240e60618607af2b981c4fdbe1374700 (diff) | |
download | ffmpeg-9c39071d6de074c6584b21b6c38adf498102a686.tar.gz |
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
Originally committed as revision 5595 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/x86_cpu.h')
-rw-r--r-- | libavutil/x86_cpu.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libavutil/x86_cpu.h b/libavutil/x86_cpu.h new file mode 100644 index 0000000000..8fd5f8600e --- /dev/null +++ b/libavutil/x86_cpu.h @@ -0,0 +1,38 @@ +#ifndef AVUTIL_X86CPU_H +#define AVUTIL_X86CPU_H + +#ifdef ARCH_X86_64 +# define REG_a "rax" +# define REG_b "rbx" +# define REG_c "rcx" +# define REG_d "rdx" +# define REG_D "rdi" +# define REG_S "rsi" +# define PTR_SIZE "8" + +# define REG_SP "rsp" +# define REG_BP "rbp" +# define REGBP rbp +# define REGa rax +# define REGb rbx +# define REGSP rsp + +#else + +# define REG_a "eax" +# define REG_b "ebx" +# define REG_c "ecx" +# define REG_d "edx" +# define REG_D "edi" +# define REG_S "esi" +# define PTR_SIZE "4" + +# define REG_SP "esp" +# define REG_BP "ebp" +# define REGBP ebp +# define REGa eax +# define REGb ebx +# define REGSP esp +#endif + +#endif /* AVUTIL_X86CPU_H */ |