jaulib v1.4.1
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::impl Namespace Reference

Functions

void abortImpl (const char *func, const char *file, const int line, const char *format,...) noexcept
 Use for unconditional ::abort() call with given messages, prefix '[elapsed_time] ABORT @ file:line func: '.
 
void dbgPrint1 (const char *format,...) noexcept
 
void dbgPrint2 (const char *s) noexcept
 
void errPrint (const char *prefix, const bool backtrace, const char *func, const char *file, const int line, const char *format,...) noexcept
 
constexpr uint32_t get_host_order () noexcept
 
bool runtime_eval (bool v)
 
void warnPrint (const char *func, const char *file, const int line, const char *format,...) noexcept
 
void wordyPrint (const char *format,...) noexcept
 

Variables

static constexpr std::array< uint8_t, 256 > BitRevTable256
 

Function Documentation

◆ get_host_order()

uint32_t jau::impl::get_host_order ( )
constexprnoexcept

Definition at line 204 of file byte_util.hpp.

◆ runtime_eval()

bool jau::impl::runtime_eval ( bool v)
inline

Definition at line 551 of file cpp_lang_util.hpp.

Here is the caller graph for this function:

◆ dbgPrint1()

void jau::impl::dbgPrint1 ( const char * format,
... )
noexcept

Definition at line 184 of file debug.cpp.

◆ dbgPrint2()

void jau::impl::dbgPrint2 ( const char * s)
noexcept

Definition at line 178 of file debug.cpp.

Here is the caller graph for this function:

◆ abortImpl()

void jau::impl::abortImpl ( const char * func,
const char * file,
const int line,
const char * format,
... )
noexcept

Use for unconditional ::abort() call with given messages, prefix '[elapsed_time] ABORT @ file:line func: '.

Function also appends last errno and strerror(errno).

Definition at line 204 of file debug.cpp.

◆ errPrint()

void jau::impl::errPrint ( const char * prefix,
const bool backtrace,
const char * func,
const char * file,
const int line,
const char * format,
... )
noexcept

Definition at line 224 of file debug.cpp.

◆ warnPrint()

void jau::impl::warnPrint ( const char * func,
const char * file,
const int line,
const char * format,
... )
noexcept

Definition at line 244 of file debug.cpp.

◆ wordyPrint()

void jau::impl::wordyPrint ( const char * format,
... )
noexcept

Definition at line 194 of file debug.cpp.

Variable Documentation

◆ BitRevTable256

std::array<uint8_t, 256> jau::impl::BitRevTable256
staticconstexpr
Initial value:
=
[]() constexpr -> std::array<uint8_t, 256> {
using namespace jau::int_literals;
std::array<uint8_t, 256> result{};
for (size_t i = 0; i < 256; ++i) {
result[i] = ( (i * 0x80200802_u64) & 0x0884422110_u64 ) * 0x0101010101_u64 >> 32;
}
return result;
}()
See also
https://graphics.stanford.edu/~seander/bithacks.html#BitReverseTable

Definition at line 755 of file byte_util.hpp.