[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Introduce short names for fixed width integer types
From: |
Avi Kivity |
Subject: |
[Qemu-devel] [PATCH] Introduce short names for fixed width integer types |
Date: |
Mon, 8 Aug 2011 15:56:30 +0300 |
QEMU deals with a lot of fixed width integer types; their names
(uint64_t etc) are clumsy to use and take up a lot of space.
Following Linux, introduce shorter names, for example U64 for
uint64_t.
Signed-off-by: Avi Kivity <address@hidden>
---
qemu-common.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/qemu-common.h b/qemu-common.h
index 0fdecf1..52a2300 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -112,6 +112,15 @@ static inline char *realpath(const char *path, char
*resolved_path)
int qemu_main(int argc, char **argv, char **envp);
#endif
+typedef int8_t S8;
+typedef uint8_t U8;
+typedef int16_t S16;
+typedef uint16_t U16;
+typedef int32_t S32;
+typedef uint32_t U32;
+typedef int64_t S64;
+typedef uint64_t U64;
+
/* bottom halves */
typedef void QEMUBHFunc(void *opaque);
--
1.7.5.3