diff x86_cpu.h @ 506:1b2d09914b4e libavutil

Do not misuse long as the size of a register in x86. typedef x86_reg as the appropriate size and use it instead.
author ramiro
date Thu, 08 May 2008 21:11:24 +0000
parents 3213123cd4e7
children 04cb71bddd8e
line wrap: on
line diff
--- a/x86_cpu.h	Tue May 06 09:16:36 2008 +0000
+++ b/x86_cpu.h	Thu May 08 21:11:24 2008 +0000
@@ -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"