Phoenix
Object-oriented orthogonally persistent operating system
Classes | Namespaces | Functions
utils.h File Reference

Various helper utilities code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  anonymous_namespace{utils.h}::UnalignedData< T >
 Helper structure for accessing unaligned data fields. More...

Namespaces

namespace  anonymous_namespace{utils.h}

Functions

template<typename T >
anonymous_namespace{utils.h}::Min (T x, T y)
 Minimal value.
template<typename T >
anonymous_namespace{utils.h}::Max (T x, T y)
 Maximal value.
template<typename T , typename Tal >
anonymous_namespace{utils.h}::RoundUp (T size, Tal align)
 Round up the value with specified alignment.
template<typename T , typename Tal >
anonymous_namespace{utils.h}::RoundDown (T size, Tal align)
 Round down the value with specified alignment.
template<typename T >
bool anonymous_namespace{utils.h}::IsPowerOf2 (T value)
 Check if specified value is an integer power of two.
template<typename T , typename Tal >
anonymous_namespace{utils.h}::RoundUp2 (T size, Tal align)
 Round up the value with specified alignment.
template<typename T , typename Tal >
anonymous_namespace{utils.h}::RoundDown2 (T size, Tal align)
 Round down the value with specified alignment.
template<typename T >
anonymous_namespace{utils.h}::RotL (const T value, const size_t numBits)
 Bit-rotate value left by specified number of bits.
template<typename T >
anonymous_namespace{utils.h}::RotR (const T value, const size_t numBits)
 Bit-rotate value right by specified number of bits.
template<typename T >
anonymous_namespace{utils.h}::GetUnaligned (const void *p)
 Get unaligned data at specified location.
template<typename T >
void anonymous_namespace{utils.h}::PutUnaligned (T value, void *p)
 Put unaligned data at specified location.

Detailed Description

Various helper utilities code.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines