From: Craig Christophel <merlin@transgeek.com>
To: linux-kernel@vger.kernel.org
Subject: if BUG() optimizations question
Date: Fri, 11 Jan 2002 17:59:12 -0500 [thread overview]
Message-ID: <20020111185611.1BF52C73A5@smtp.transgeek.com> (raw)
I have changed almost all of the instances of if(blah) BUG(); in 2.5.2-pre11
to use if(unlikely(blah)) BUG(); or the macro BUG_ON(blah); if anyone would
like this I can give you your portion. It actually does make a difference,
if there is a gcc op likely(blah) then for the remaining if(blah) digahole;
else BUG(); will be chainged soon as well.
I hope that this makes sense as it was a fairly trivial change, it just took
a while as everyone writes the BUG(); stuff differently.
Craig.
reply other threads:[~2002-01-11 22:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020111185611.1BF52C73A5@smtp.transgeek.com \
--to=merlin@transgeek.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®