From 9ef81ac16c421ba106ab943f99d19b8326967176 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Mon, 5 Jun 2017 16:56:59 +0300 Subject: [PATCH] mdbx: add 'unlikely' to IS_OVERFLOW(). Change-Id: Ia92aac948046890ca4f9d9c3fbff0b4ac5728fab --- src/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bits.h b/src/bits.h index f06685b9..3e91348e 100644 --- a/src/bits.h +++ b/src/bits.h @@ -915,7 +915,7 @@ static __inline size_t roundup2(size_t value, size_t granularity) { /* Test if a page is a branch page */ #define IS_BRANCH(p) F_ISSET((p)->mp_flags, P_BRANCH) /* Test if a page is an overflow page */ -#define IS_OVERFLOW(p) F_ISSET((p)->mp_flags, P_OVERFLOW) +#define IS_OVERFLOW(p) unlikely(F_ISSET((p)->mp_flags, P_OVERFLOW)) /* Test if a page is a sub page */ #define IS_SUBP(p) F_ISSET((p)->mp_flags, P_SUBP)