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

@@ -1568,7 +1568,8 @@ ceil_powerof2(size_t value, size_t granularity) {
return floor_powerof2(value + granularity - 1, granularity);
}
MDBX_NOTHROW_CONST_FUNCTION static __maybe_unused unsigned log2n(size_t value) {
MDBX_NOTHROW_CONST_FUNCTION static __maybe_unused unsigned
log2n_powerof2(size_t value) {
assert(value > 0 && value < INT32_MAX && is_powerof2(value));
assert((value & -(int32_t)value) == value);
#if __GNUC_PREREQ(4, 1) || __has_builtin(__builtin_ctzl)