From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THMkq-00037F-Ip for qemu-devel@nongnu.org; Thu, 27 Sep 2012 18:40:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THMkn-00032Q-IG for qemu-devel@nongnu.org; Thu, 27 Sep 2012 18:40:24 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:45883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THMkn-00031Y-C9 for qemu-devel@nongnu.org; Thu, 27 Sep 2012 18:40:21 -0400 Received: by pbbrp2 with SMTP id rp2so4262166pbb.4 for ; Thu, 27 Sep 2012 15:40:20 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 27 Sep 2012 15:39:43 -0700 Message-Id: <1348785610-23418-3-git-send-email-rth@twiddle.net> In-Reply-To: <1348785610-23418-1-git-send-email-rth@twiddle.net> References: <1348785610-23418-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 002/147] 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 Signed-off-by: Richard Henderson Reviewed-by: Aurelien Jarno --- tcg/tcg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcg/tcg.h b/tcg/tcg.h index 562f0ad..88c1073 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -252,6 +252,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