* if BUG() optimizations question
@ 2002-01-11 22:59 Craig Christophel
0 siblings, 0 replies; only message in thread
From: Craig Christophel @ 2002-01-11 22:59 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-01-11 22:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-11 22:59 if BUG() optimizations question Craig Christophel
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®