diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/misc.h b/src/include/misc.h index e2b46d0dbdc..a099213e004 100644 --- a/src/include/misc.h +++ b/src/include/misc.h @@ -47,6 +47,9 @@ #define WT_ALIGN(n, v) \ ((((uintmax_t)(n)) + ((v) - 1)) & ~(((uintmax_t)(v)) - 1)) +#define WT_ALIGN_NEAREST(n, v) \ + ((((uintmax_t)(n)) + ((v) / 2)) & ~(((uintmax_t)(v)) - 1)) + /* Min, max. */ #define WT_MIN(a, b) ((a) < (b) ? (a) : (b)) #define WT_MAX(a, b) ((a) < (b) ? (b) : (a)) |