PMDK C++ bindings  1.8.1
This is the C++ bindings documentation for PMDK's libpmemobj.
Namespaces | Functions
common.hpp File Reference

Commonly used functionality. More...

#include <libpmemobj++/pexceptions.hpp>
#include <libpmemobj/tx_base.h>
#include <string>
#include <typeinfo>

Go to the source code of this file.

Namespaces

 pmem
 A persistent version of concurrent hash map implementation Ref: https://arxiv.org/abs/1509.02235.
 

Functions

uint64_t pmem::detail::next_pow_2 (uint64_t v)
 Round up to the next lowest power of 2. More...
 
uint64_t pmem::detail::next_pow_2 (uint32_t v)
 Round up to the next lowest power of 2. More...
 

Detailed Description

Commonly used functionality.

Function Documentation

◆ next_pow_2() [1/2]

uint64_t pmem::detail::next_pow_2 ( uint32_t  v)
inline

Round up to the next lowest power of 2.

Overload for uint32_t argument.

◆ next_pow_2() [2/2]

uint64_t pmem::detail::next_pow_2 ( uint64_t  v)
inline

Round up to the next lowest power of 2.

Overload for uint64_t argument.