We usually switch the order of the if and else blocks to if(likely condition) {} , instead of if (unlikely condition) {}