VISR  0.11.1
Versatile Interactive Scene Renderer
alignment.hpp File Reference
#include <cstddef>
#include <ciso646>

Go to the source code of this file.

Namespaces

 visr
 
 visr::efl
 

Functions

bool visr::efl::alignmentIsPowerOfTwo (std::size_t alignmentVal)
 
template<typename T >
bool visr::efl::checkAlignment (T const *ptr, std::size_t alignment)
 
std::size_t visr::efl::nextAlignedSize (std::size_t size, std::size_t alignment)
 

Detailed Description

A collection of utility functions for dealing with memory-aligned sequences of memory.

Note
Within this project, alignment is typically given as a number of elements, as opposed to a number of bytes.