[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/5] tcg: Add tcg_invert_cond.
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH 4/5] tcg: Add tcg_invert_cond. |
Date: |
Sun, 20 Dec 2009 00:11:32 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sat, Dec 19, 2009 at 10:44:52AM -0800, Richard Henderson wrote:
> It is very handy to have a reliable mapping of a condition to its inverse.
Acked-by: Aurelien Jarno <address@hidden>
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> tcg/tcg.h | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/tcg/tcg.h b/tcg/tcg.h
> index 9824493..376d6af 100644
> --- a/tcg/tcg.h
> +++ b/tcg/tcg.h
> @@ -205,6 +205,11 @@ typedef enum {
> TCG_COND_GTU,
> } TCGCond;
>
> +static inline TCGCond tcg_invert_cond(TCGCond c)
> +{
> + return (TCGCond)(c ^ 1);
> +}
> +
> #define TEMP_VAL_DEAD 0
> #define TEMP_VAL_REG 1
> #define TEMP_VAL_MEM 2
> --
> 1.6.5.2
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
- [Qemu-devel] [PATCH 2/5] tcg-x86_64: Implement setcond., (continued)
- [Qemu-devel] [PATCH 2/5] tcg-x86_64: Implement setcond., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 3/5] tcg-i386: Implement small forward branches., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 5/5] tcg-i386: Implement setcond., Richard Henderson, 2009/12/19
- [Qemu-devel] [PATCH 4/5] tcg: Add tcg_invert_cond., Richard Henderson, 2009/12/19
- Re: [Qemu-devel] [PATCH 4/5] tcg: Add tcg_invert_cond.,
Aurelien Jarno <=
- [Qemu-devel] [PATCH 1/5] tcg: Generic support for conditional set, Richard Henderson, 2009/12/19
- Re: [Qemu-devel] [PATCH 1/5] tcg: Generic support for conditional set, Laurent Desnogues, 2009/12/22
- Re: [Qemu-devel] [PATCH 0/5] tcg conditional set, round 4, Aurelien Jarno, 2009/12/19
- Re: [Qemu-devel] [PATCH 0/5] tcg conditional set, round 4, Paul Brook, 2009/12/20