Grok  7.6.2
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
ojph Namespace Reference

Namespaces

 local
 

Classes

class  argument
 
class  cli_interpreter
 
struct  coded_lists
 
struct  line_buf
 
class  mem_elastic_allocator
 
class  mem_fixed_allocator
 
class  message_base
 
class  message_error
 
class  message_info
 
class  message_warning
 
struct  point
 
struct  rect
 
struct  size
 

Typedefs

typedef uint8_t ui8
 
typedef int8_t si8
 
typedef uint16_t ui16
 
typedef int16_t si16
 
typedef uint32_t ui32
 
typedef int32_t si32
 
typedef uint64_t ui64
 
typedef int64_t si64
 

Enumerations

enum  OJPH_MSG_LEVEL : int { NO_MSG = 0, INFO = 1, WARN = 2, ERROR = 3 }
 

Functions

int cpu_ext_level ()
 
static ui32 population_count (ui32 val)
 
static ui32 count_leading_zeros (ui32 val)
 
static ui32 count_trailing_zeros (ui32 val)
 
static si32 ojph_round (float val)
 
static si32 ojph_trunc (float val)
 
template<typename T , int N>
size_t calc_aligned_size (size_t size)
 
template<typename T , int N>
T * align_ptr (T *ptr)
 
OJPH_EXPORT void set_info_stream (FILE *s)
 
OJPH_EXPORT void configure_info (message_info *info)
 
OJPH_EXPORT message_infoget_info ()
 
OJPH_EXPORT void set_warning_stream (FILE *s)
 
OJPH_EXPORT void configure_warning (message_warning *warn)
 
OJPH_EXPORT message_warningget_warning ()
 
OJPH_EXPORT void set_error_stream (FILE *s)
 
OJPH_EXPORT void configure_error (message_error *error)
 
OJPH_EXPORT message_errorget_error ()
 

Variables

const ui32 byte_alignment = 32
 
const ui32 log_byte_alignment = 31 - count_leading_zeros(byte_alignment)
 
const ui32 object_alignment = 8
 
const int NUM_FRAC_BITS = 13
 
static int cpu_level = 0
 
static bool cpu_level_initialized = true
 
FILE * info_stream = stdout
 
message_info info
 
message_infolocal_info = info
 
FILE * warning_stream = stdout
 
message_warning warn
 
message_warninglocal_warn = warn
 
FILE * error_stream = stderr
 
message_error error
 
message_errorlocal_error = error
 

Typedef Documentation

◆ si16

typedef int16_t ojph::si16

◆ si32

typedef int32_t ojph::si32

◆ si64

typedef int64_t ojph::si64

◆ si8

typedef int8_t ojph::si8

◆ ui16

typedef uint16_t ojph::ui16

◆ ui32

typedef uint32_t ojph::ui32

◆ ui64

typedef uint64_t ojph::ui64

◆ ui8

typedef uint8_t ojph::ui8

Enumeration Type Documentation

◆ OJPH_MSG_LEVEL

Enumerator
NO_MSG 
INFO 
WARN 
ERROR 

Function Documentation

◆ align_ptr()

template<typename T , int N>
T* ojph::align_ptr ( T *  ptr)
inline

References count_leading_zeros().

◆ calc_aligned_size()

template<typename T , int N>
size_t ojph::calc_aligned_size ( size_t  size)

References count_leading_zeros().

◆ configure_error()

void ojph::configure_error ( message_error error)

References error, and local_error.

◆ configure_info()

void ojph::configure_info ( message_info info)

References info, and local_info.

◆ configure_warning()

void ojph::configure_warning ( message_warning warn)

References local_warn, and warn.

◆ count_leading_zeros()

static ui32 ojph::count_leading_zeros ( ui32  val)
inlinestatic

◆ count_trailing_zeros()

static ui32 ojph::count_trailing_zeros ( ui32  val)
inlinestatic

References population_count().

◆ cpu_ext_level()

int ojph::cpu_ext_level ( )

References cpu_level, and cpu_level_initialized.

◆ get_error()

message_error & ojph::get_error ( )

References local_error.

◆ get_info()

message_info & ojph::get_info ( )

References local_info.

◆ get_warning()

message_warning & ojph::get_warning ( )

References local_warn.

◆ ojph_round()

static si32 ojph::ojph_round ( float  val)
inlinestatic

◆ ojph_trunc()

static si32 ojph::ojph_trunc ( float  val)
inlinestatic

◆ population_count()

static ui32 ojph::population_count ( ui32  val)
inlinestatic

◆ set_error_stream()

void ojph::set_error_stream ( FILE *  s)

References error_stream.

◆ set_info_stream()

void ojph::set_info_stream ( FILE *  s)

References info_stream.

◆ set_warning_stream()

void ojph::set_warning_stream ( FILE *  s)

References warning_stream.

Variable Documentation

◆ byte_alignment

const ui32 ojph::byte_alignment = 32

◆ cpu_level

int ojph::cpu_level = 0
static

Referenced by cpu_ext_level().

◆ cpu_level_initialized

bool ojph::cpu_level_initialized = true
static

Referenced by cpu_ext_level().

◆ error

message_error ojph::error

◆ error_stream

FILE* ojph::error_stream = stderr

◆ info

message_info ojph::info

◆ info_stream

FILE* ojph::info_stream = stdout

◆ local_error

message_error& ojph::local_error = error

Referenced by configure_error(), and get_error().

◆ local_info

message_info& ojph::local_info = info

Referenced by configure_info(), and get_info().

◆ local_warn

message_warning& ojph::local_warn = warn

Referenced by configure_warning(), and get_warning().

◆ log_byte_alignment

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

◆ NUM_FRAC_BITS

const int ojph::NUM_FRAC_BITS = 13

◆ object_alignment

const ui32 ojph::object_alignment = 8

◆ warn

message_warning ojph::warn

Referenced by configure_warning().

◆ warning_stream

FILE* ojph::warning_stream = stdout