6355dd4f4d
Summary: PtrInt data structure (Pointer Integer pair inside one pointer location). Part of T150 Test Plan: manual Reviewers: sale Subscribers: buda, sale Differential Revision: https://memgraph.phacility.com/D11
11 lines
133 B
C++
11 lines
133 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
namespace utils
|
|
{
|
|
|
|
constexpr size_t log2(size_t n) { return ((n < 2) ? 0 : 1 + log2(n >> 1)); }
|
|
|
|
}
|