Grok  9.7.5
Namespaces | Functions | Variables
ojph_arch.h File Reference
#include <cstdio>
#include <cstdint>
#include <cmath>
#include "ojph_defs.h"

Go to the source code of this file.

Namespaces

 ojph
 

Functions

static ui32 ojph::population_count (ui32 val)
 
static ui32 ojph::count_leading_zeros (ui32 val)
 
template<typename T , int N>
size_t ojph::calc_aligned_size (size_t size)
 
template<typename T , int N>
T * ojph::align_ptr (T *ptr)
 

Variables

const ui32 ojph::byte_alignment = 32
 
const ui32 ojph::log_byte_alignment = 31 - count_leading_zeros(byte_alignment)
 
const ui32 ojph::object_alignment = 8