Is there any portable way of doing branch prediction hints? Consider the following example:
if (unlikely_condition) { /* ..A.. */ } else { /* ..B
Just be consistant with what you do. I like to use
if (!(someExpression))
But the compiler should treat this equally.