Re: if (unlikely(...)) == unnecessary?

From: Mikael Pettersson
Date: Wed Jan 28 2009 - 14:53:59 EST

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?


Why on earth would you want to rely on an purely private implementation
detail like that?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at