[lkml]   [2001]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: page_launder() bug
    Tobias Ringstrom wrote:
    > On Sun, 6 May 2001, David S. Miller wrote:
    > > It is the most straightforward way to make a '1' or '0'
    > > integer from the NULL state of a pointer.
    > But is it really specified in the C "standards" to be exctly zero or one,
    > and not zero and non-zero?

    !0 is 1. !(anything else) is 0. It is zero and one, not
    zero and "non-zero". So a !! construction gives zero if you have
    zero, and one if you had anything else. There's no doubt about it.
    > IMHO, the ?: construct is way more readable and reliable.

    Thats your opinion. There are many others. Some don't like the
    ?: at all, for example. And some like all valid C.

    Helge Hafting
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:52    [W:0.019 / U:15.192 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site