lkml.org 
[lkml]   [2002]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectif BUG() optimizations question
Date
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.051 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site