From 15ce0501d267b049b12851b6301fff2d07f71ac2 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 28 Mar 2014 15:16:35 -0400 Subject: [PATCH] ck_sequence: Add branch hint for short-circuit. --- include/ck_sequence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_sequence.h b/include/ck_sequence.h index 23e6ea6..14138ff 100644 --- a/include/ck_sequence.h +++ b/include/ck_sequence.h @@ -58,7 +58,7 @@ ck_sequence_read_begin(struct ck_sequence *sq) * If a sequence is even then associated data may be in a * consistent state. */ - if ((version & 1) == 0) + if (CK_CC_LIKELY((version & 1) == 0)) break; /*