From: Miles Bader <miles@lsi.nec.co.jp>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Chuck Ebbert <76306.1226@compuserve.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk>,
Andi Kleen <ak@suse.de>
Subject: Re: [patch 2.6.13-rc3] i386: clean up user_mode macros
Date: Tue, 26 Jul 2005 10:28:43 +0900 [thread overview]
Message-ID: <buoll3upd84.fsf@mctpc71.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <Pine.LNX.4.58.0507251608430.6074@g5.osdl.org> (Linus Torvalds's message of "Mon, 25 Jul 2005 16:13:13 -0700 (PDT)")
Linus Torvalds <torvalds@osdl.org> writes:
> Ask a hundred random C programmers what "!!x" means, versus what "x != 0"
> means, and time their replies.
I've always thought of "!!" as the "canonicalize boolean" operator...
Vaguely ugly, but I think it's actually _more clear_ than != 0 in
contexts where the value is already "boolean" in the C zero or not-zero
sense, but you want a "proper" boolean (0 or 1) for some reason.
-miles
--
Somebody has to do something, and it's just incredibly pathetic that it
has to be us. -- Jerry Garcia
next prev parent reply other threads:[~2005-07-26 1:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-25 22:59 [patch 2.6.13-rc3] i386: clean up user_mode macros Chuck Ebbert
2005-07-25 23:13 ` Linus Torvalds
2005-07-26 0:20 ` Steven Rostedt
2005-07-26 2:45 ` Lee Revell
2005-07-26 1:28 ` Miles Bader [this message]
2005-07-26 1:34 ` Andrew Morton
2005-07-26 2:31 ` randy_dunlap
2005-07-27 1:57 Chuck Ebbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buoll3upd84.fsf@mctpc71.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=76306.1226@compuserve.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miles@gnu.org \
--cc=torvalds@osdl.org \
--cc=vincent.hanquez@cl.cam.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).