lkml.org 
[lkml]   [2019]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 02/25] tracing: Improve "if" macro code generation
    On Wed, Mar 20, 2019 at 10:36 AM David Laight <David.Laight@aculab.com> 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

    \
     
     \ /
      Last update: 2019-03-20 18:39    [W:2.236 / U:0.380 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site