summaryrefslogtreecommitdiff
path: root/libavutil/x86_cpu.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-05-08 21:11:24 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-05-08 21:11:24 +0000
commit40d0e665d09aca5918c0b70b7045f32fae71f3eb (patch)
tree90a376cb30c157bbb7b682d62a5c776e4a8917f0 /libavutil/x86_cpu.h
parent35027eddf3113fa8a0e0c72aad12c9ac6a9a5228 (diff)
Do not misuse long as the size of a register in x86.
typedef x86_reg as the appropriate size and use it instead. Originally committed as revision 13081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/x86_cpu.h')
-rw-r--r--libavutil/x86_cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/x86_cpu.h b/libavutil/x86_cpu.h
index 750e061c21..43619ad79d 100644
--- a/libavutil/x86_cpu.h
+++ b/libavutil/x86_cpu.h
@@ -31,6 +31,7 @@
# define REG_D "rdi"
# define REG_S "rsi"
# define PTR_SIZE "8"
+typedef int64_t x86_reg;
# define REG_SP "rsp"
# define REG_BP "rbp"
@@ -50,6 +51,7 @@
# define REG_D "edi"
# define REG_S "esi"
# define PTR_SIZE "4"
+typedef int32_t x86_reg;
# define REG_SP "esp"
# define REG_BP "ebp"