qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v7 19/52] tcg: Remove TCGV_EQUAL*


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v7 19/52] tcg: Remove TCGV_EQUAL*
Date: Tue, 24 Oct 2017 21:56:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 10/24/2017 05:11 AM, Philippe Mathieu-Daudé wrote:
>>      /* If no temporary was used, be careful not to alias t1 and t0.  */
>> -        t0 = TCGV_EQUAL(t1, cpu_cc_src) ? cpu_tmp0 : reg;
>> +        t0 = t1 == cpu_cc_src ? cpu_tmp0 : reg;
> As I noticed in a previous patch, this expression is a bit easier/faster
> to read/review with parenthesis are used:
> 
>            t0 = (t1 == cpu_cc_src ? cpu_tmp0 : reg);

You're right.  And I normally write it this way myself, even though operator
precedence does not require it.

But this is a case of search-and-replace, and I didn't retouch such things.


r~



reply via email to

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