[lkml]   [2009]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: if (unlikely(...)) == unnecessary?
On Wed, 28 Jan 2009, Chris Snook wrote:

> Davide Libenzi wrote:
> > I noticed that GCC >= 3.3 (not tried the ones before) automatically branches
> > out the "if" code (and follow-through the "else" code, if there). Is that a
> > coincidence or a rule we can rely on going forward?
> That's the default behavior, but there are lots of things that can cause it to
> behave differently.

Please don't keep me hanging. What are they (just a few of the "lots"
that makes GCC follow-through "if" code)?

- Davide

 \ /
  Last update: 2009-01-28 20:45    [W:0.066 / U:8.204 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site