From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAoiB-0006A6-EM for qemu-devel@nongnu.org; Sun, 09 Sep 2012 17:06:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAoiA-0005pa-4x for qemu-devel@nongnu.org; Sun, 09 Sep 2012 17:06:35 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:59699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAoi9-0005pQ-U3 for qemu-devel@nongnu.org; Sun, 09 Sep 2012 17:06:34 -0400 Received: by pbbrp12 with SMTP id rp12so291958pbb.4 for ; Sun, 09 Sep 2012 14:06:33 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sun, 9 Sep 2012 14:04:19 -0700 Message-Id: <1347224784-19472-2-git-send-email-rth@twiddle.net> In-Reply-To: <1347224784-19472-1-git-send-email-rth@twiddle.net> References: <1347224784-19472-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 001/126] tcg: Add TCGV_IS_UNUSED_* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexander Graf , Aurelien Jarno Signed-off-by: Richard Henderson Cc: Aurelien Jarno --- 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