diff options
author | Richard Henderson <rth@twiddle.net> | 2012-12-07 15:07:17 -0600 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-12-29 12:14:07 +0000 |
commit | afcb92beac9e477e5ae5c36bf38830e225e2235f (patch) | |
tree | 347011705ab00eeda30ba3f03f99ccedcc878707 /tcg/tcg.h | |
parent | 927fa909d5d5cf8c07673cd16a6d3bdc81250bc0 (diff) |
tcg: Add TCGV_IS_UNUSED_*
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -270,6 +270,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 */ /* Helper does not read globals (either directly or through an exception). It implies TCG_CALL_NO_WRITE_GLOBALS. */ |