mdbx: rename log2n_powerof2().

Change-Id: I22290630186c5041b6ae242d0db1f5c5f36da4ec
This commit is contained in:
Leonid Yuriev
2021-04-24 14:07:15 +03:00
parent d1fea74d0e
commit 55f41f40a1
3 changed files with 6 additions and 5 deletions

View File

@@ -2409,7 +2409,7 @@ __cold int mdbx_get_sysraminfo(intptr_t *page_size, intptr_t *total_pages,
if (unlikely(pagesize < MIN_PAGESIZE || !is_powerof2(pagesize)))
return MDBX_INCOMPATIBLE;
__maybe_unused const int log2page = log2n(pagesize);
__maybe_unused const int log2page = log2n_powerof2(pagesize);
assert(pagesize == (INT64_C(1) << log2page));
(void)log2page;