Re: [PATCH 02/25] tracing: Improve "if" macro code generation

From: Linus Torvalds
Date: Wed Mar 20 2019 - 13:39:11 EST


On Wed, Mar 20, 2019 at 10:36 AM David Laight <David.Laight@xxxxxxxxxx> wrote:
>
>
> Actually you can avoid double evaluation by doing:
>
> (cond) ? (______f.miss_hit[1]++, 1) : (______f.miss_hit[0]++, 0)

I don't think you looked at the patch in my attachment of the email
you replied to, did you?

That's exactly what it does, except it also gets rid of those
completely pointless and insane underscores, and makes the code more
legible in other ways too.

Linus