|
|
|
|
|
by pmr_
5543 days ago
|
|
There is really no connection between the likely macro and branch prediction here. The gcc built-in simply will organize the code in a manner that makes the likely statement faster to execute (e.g. branching the unlikely block). Branch predictors are a runtime mechanism so the processor guesses which outcome of the "if" is more likely. One is a static optimization, the other is dynamic; if you like to think about it that way. |
|