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

> Davide Libenzi writes:
> > 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?
>
> Coincidence.
>
> Why on earth would you want to rely on an purely private implementation
> detail like that?

I didn't want to. I was just curious if anyone that actually followed GCC
developments in the last few years could shed some light on it.


- Davide




\
 
 \ /
  Last update: 2009-01-28 21:01    [W:0.068 / U:1.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site