The ‘unlikely()’ macro is to help the compiler generate better output for the usual-case scenario IIRC.
Dominic
// OLD METHOD
// curr = (replay_score_t *)(current_score + REPLAY_SCORE_OFFSET);
// if (unlikely (*curr >= next_replay_score)) {
// replay_award ();
//MY METHOD
if (score_compare (current_score, next_replay_score) ) {
replay_award ();
//MY METHOD
if (score_compare (current_score, next_replay_score) ) {
replay_award ();
}
}