qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 001/126] tcg: Add TCGV_IS_UNUSED_*


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 001/126] tcg: Add TCGV_IS_UNUSED_*
Date: Sun, 9 Sep 2012 14:04:19 -0700

Signed-off-by: Richard Henderson <address@hidden>
Cc: Aurelien Jarno <address@hidden>
---
 tcg/tcg.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tcg/tcg.h b/tcg/tcg.h
index d710694..a9367fe 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -251,6 +251,9 @@ typedef int TCGv_i64;
 #define TCGV_UNUSED_I32(x) x = MAKE_TCGV_I32(-1)
 #define TCGV_UNUSED_I64(x) x = MAKE_TCGV_I64(-1)
 
+#define TCGV_IS_UNUSED_I32(x) (GET_TCGV_I32(x) == -1)
+#define TCGV_IS_UNUSED_I64(x) (GET_TCGV_I64(x) == -1)
+
 /* call flags */
 /* A pure function only reads its arguments and TCG global variables
    and cannot raise exceptions. Hence a call to a pure function can be
-- 
1.7.11.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]