mdbx: add 'unlikely' to IS_OVERFLOW().

Change-Id: Ia92aac948046890ca4f9d9c3fbff0b4ac5728fab
This commit is contained in:
Leo Yuriev 2017-06-05 16:56:59 +03:00
parent 439ae3983c
commit 9ef81ac16c

View File

@ -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)