qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 3/3] trace: instrument and trace tcg tb flush


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2 3/3] trace: instrument and trace tcg tb flush activity
Date: Tue, 15 Jul 2014 14:07:26 +0100

On 15 July 2014 13:23, Peter Maydell <address@hidden> wrote:
> On 15 July 2014 12:42, Alex Bennée <address@hidden> wrote:
>> +#ifndef CONFIG_TRACE_NOP
>> +static inline void trace_inc_counter(int *counter) {
>> +    int cnt = *counter;
>> +    cnt++;
>> +    *counter = cnt;
>> +}
>
> ...why isn't this just "*counter++;"  ?

Derp.

 (*counter)++;

I leave for the reader to decide whether this constitutes an
argument in favour of the way you originally phrased it...

-- PMM



reply via email to

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